package com.ecep.contract.service;

import java.util.List;

import com.ecep.contract.util.ParamUtils;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import com.ecep.contract.vo.ProjectSaleTypeRequireFileTypeVo;
import com.ecep.contract.vm.ProjectSaleTypeRequireFileTypeViewModel;

@Service
public class ProjectSaleTypeRequireFileTypeService
        extends QueryService<ProjectSaleTypeRequireFileTypeVo, ProjectSaleTypeRequireFileTypeViewModel> {

    public List<ProjectSaleTypeRequireFileTypeVo> findBySaleTypeId(Integer id) {
        return  findAll(ParamUtils.equal("saleType", id), Pageable.unpaged()).getContent();
    }

}
