b151efbd23138e973d35a1c9b681e3f31f864294.svn-base 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package cn.com.goldenwater.dcproj.service.impl.vill2020;
  2. import cn.com.goldenwater.core.service.AbstractCrudService;
  3. import cn.com.goldenwater.dcproj.dao.AttCwsBaseDao;
  4. import cn.com.goldenwater.dcproj.dao.BisNewCountryFeeDao;
  5. import cn.com.goldenwater.dcproj.model.AttCwsBase;
  6. import cn.com.goldenwater.dcproj.model.BisNewCountryFee;
  7. import cn.com.goldenwater.dcproj.param.BisNewCountryFeeParam;
  8. import cn.com.goldenwater.dcproj.param.CwsParam;
  9. import cn.com.goldenwater.dcproj.service.BisNewCountryFeeService;
  10. import cn.com.goldenwater.dcproj.utils.InspUtils;
  11. import com.github.pagehelper.PageHelper;
  12. import com.github.pagehelper.PageInfo;
  13. import org.springframework.beans.factory.annotation.Autowired;
  14. import org.springframework.stereotype.Service;
  15. import org.springframework.transaction.annotation.Transactional;
  16. import java.util.List;
  17. /**
  18. * @author lune
  19. * @date 2020-3-27
  20. */
  21. @Service
  22. @Transactional
  23. public class BisNewCountryFeeServiceImpl extends AbstractCrudService<BisNewCountryFee, BisNewCountryFeeParam> implements BisNewCountryFeeService {
  24. @Autowired
  25. private BisNewCountryFeeDao bisNewCountryFeeDao;
  26. @Autowired
  27. private AttCwsBaseDao attCwsBaseDao;
  28. public BisNewCountryFeeServiceImpl(BisNewCountryFeeDao bisNewCountryFeeDao) {
  29. super(bisNewCountryFeeDao);
  30. this.bisNewCountryFeeDao = bisNewCountryFeeDao;
  31. }
  32. @Override
  33. public PageInfo<AttCwsBase> pageNotDC(CwsParam cwsParam) {
  34. PageHelper.startPage(cwsParam.getPageNum(), cwsParam.getPageSize());
  35. String engStat = InspUtils.setOrgIds(cwsParam.getEngStat());
  36. cwsParam.setEngStat(engStat);
  37. List<AttCwsBase> bisInspBaseDtos = attCwsBaseDao.queryListByRegstrIdNotDC(cwsParam);
  38. PageInfo page = new PageInfo(bisInspBaseDtos);
  39. return page;
  40. }
  41. }