package com.ecep.contract.service;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import com.ecep.contract.util.ParamUtils;
import com.ecep.contract.vm.ProjectCostItemViewModel;
import com.ecep.contract.vo.ProjectCostItemVo;
import com.ecep.contract.vo.ProjectCostVo;

@Service
public class ProjectCostItemService extends QueryService<ProjectCostItemVo, ProjectCostItemViewModel> {

    public List<ProjectCostItemVo> findByCost(ProjectCostVo cost) {
        return findAll(ParamUtils.builder().equals("cost", cost).build(), Pageable.unpaged()).getContent();
    }
}
