package cn.com.goldenwater.dcproj.service.impl.vill2020; import cn.com.goldenwater.core.service.AbstractCrudService; import cn.com.goldenwater.dcproj.dao.AttCwsBaseDao; import cn.com.goldenwater.dcproj.dao.BisNewCountryFeeDao; import cn.com.goldenwater.dcproj.model.AttCwsBase; import cn.com.goldenwater.dcproj.model.BisNewCountryFee; import cn.com.goldenwater.dcproj.param.BisNewCountryFeeParam; import cn.com.goldenwater.dcproj.param.CwsParam; import cn.com.goldenwater.dcproj.service.BisNewCountryFeeService; import cn.com.goldenwater.dcproj.utils.InspUtils; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * @author lune * @date 2020-3-27 */ @Service @Transactional public class BisNewCountryFeeServiceImpl extends AbstractCrudService implements BisNewCountryFeeService { @Autowired private BisNewCountryFeeDao bisNewCountryFeeDao; @Autowired private AttCwsBaseDao attCwsBaseDao; public BisNewCountryFeeServiceImpl(BisNewCountryFeeDao bisNewCountryFeeDao) { super(bisNewCountryFeeDao); this.bisNewCountryFeeDao = bisNewCountryFeeDao; } @Override public PageInfo pageNotDC(CwsParam cwsParam) { PageHelper.startPage(cwsParam.getPageNum(), cwsParam.getPageSize()); String engStat = InspUtils.setOrgIds(cwsParam.getEngStat()); cwsParam.setEngStat(engStat); List bisInspBaseDtos = attCwsBaseDao.queryListByRegstrIdNotDC(cwsParam); PageInfo page = new PageInfo(bisInspBaseDtos); return page; } }