0a698536f2b2a10fa1a64b358d4eb36e39da5b94.svn-base 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package cn.com.goldenwater.dcproj.service.impl.rdwsp;
  2. import cn.com.goldenwater.core.service.AbstractCrudService;
  3. import cn.com.goldenwater.dcproj.constValue.BisInspEnum;
  4. import cn.com.goldenwater.dcproj.dao.AttCwsBaseDao;
  5. import cn.com.goldenwater.dcproj.dao.BisBisRdwspRgstrFeeDao;
  6. import cn.com.goldenwater.dcproj.model.AttCwsBase;
  7. import cn.com.goldenwater.dcproj.model.BisBisRdwspRgstrFee;
  8. import cn.com.goldenwater.dcproj.model.BisInspPblm;
  9. import cn.com.goldenwater.dcproj.param.BisBisRdwspRgstrFeeParam;
  10. import cn.com.goldenwater.dcproj.param.CwsParam;
  11. import cn.com.goldenwater.dcproj.param.PlbmParam;
  12. import cn.com.goldenwater.dcproj.service.BisBisRdwspRgstrFeeService;
  13. import com.github.pagehelper.PageHelper;
  14. import com.github.pagehelper.PageInfo;
  15. import org.springframework.beans.factory.annotation.Autowired;
  16. import org.springframework.stereotype.Service;
  17. import org.springframework.transaction.annotation.Transactional;
  18. import java.util.List;
  19. /**
  20. * @author lune
  21. * @date 2020-10-9
  22. */
  23. @Service
  24. @Transactional(rollbackFor = Exception.class)
  25. public class BisBisRdwspRgstrFeeServiceImpl extends AbstractCrudService<BisBisRdwspRgstrFee, BisBisRdwspRgstrFeeParam> implements BisBisRdwspRgstrFeeService {
  26. @Autowired
  27. private BisBisRdwspRgstrFeeDao bisBisRdwspRgstrFeeDao;
  28. @Autowired
  29. private AttCwsBaseDao attCwsBaseDao;
  30. public BisBisRdwspRgstrFeeServiceImpl(BisBisRdwspRgstrFeeDao bisBisRdwspRgstrFeeDao) {
  31. super(bisBisRdwspRgstrFeeDao);
  32. this.bisBisRdwspRgstrFeeDao = bisBisRdwspRgstrFeeDao;
  33. }
  34. @Override
  35. public PageInfo<AttCwsBase> pageNotDC(CwsParam cwsParam) {
  36. PageHelper.startPage(cwsParam.getPageNum(), cwsParam.getPageSize());
  37. cwsParam.setType(BisInspEnum.RDWSP.getValue());
  38. List<AttCwsBase> bisInspBaseDtos = attCwsBaseDao.queryListByRegstrIdNotDCByType(cwsParam);
  39. return new PageInfo<>(bisInspBaseDtos);
  40. }
  41. @Override
  42. public PageInfo<BisInspPblm> findPageList(PlbmParam pblmParam) {
  43. PageHelper.startPage(pblmParam);
  44. List<BisInspPblm> list = bisBisRdwspRgstrFeeDao.findPageList(pblmParam);
  45. return new PageInfo<>(list);
  46. }
  47. }