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.VendorGroupRequireFileTypeViewModel;
import com.ecep.contract.vo.VendorGroupRequireFileTypeVo;

@Service
public class VendorGroupRequireFileTypeService
        extends QueryService<VendorGroupRequireFileTypeVo, VendorGroupRequireFileTypeViewModel> {

    public List<VendorGroupRequireFileTypeVo> findByGroupId(Integer id) {
        return findAll(ParamUtils.builder().equals("group", id).build(), Pageable.unpaged()).getContent();
    }

}
