921c7ab38064fc31f8c9f8b4296dbc317f726bb1.svn-base 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package cn.com.goldenwater.dcproj.service.impl.rsvr;
  2. import cn.com.goldenwater.dcproj.dao.BisInspPreListDao;
  3. import cn.com.goldenwater.dcproj.model.BisInspPreList;
  4. import cn.com.goldenwater.dcproj.param.BisInspPreListParam;
  5. import cn.com.goldenwater.dcproj.service.BisInspPreListService;
  6. import cn.com.goldenwater.core.service.AbstractCrudService;
  7. import com.github.pagehelper.PageHelper;
  8. import com.github.pagehelper.PageInfo;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.stereotype.Service;
  11. import org.springframework.transaction.annotation.Transactional;
  12. import java.util.List;
  13. /**
  14. * @author lune
  15. * @date 2019-2-18
  16. */
  17. @Service
  18. @Transactional
  19. public class BisInspPreListServiceImpl extends AbstractCrudService<BisInspPreList, BisInspPreListParam> implements BisInspPreListService {
  20. @Autowired
  21. private BisInspPreListDao bisInspPreListDao;
  22. public BisInspPreListServiceImpl(BisInspPreListDao bisInspPreListDao) {
  23. super(bisInspPreListDao);
  24. this.bisInspPreListDao = bisInspPreListDao;
  25. }
  26. @Override
  27. public PageInfo<BisInspPreList> findAlPageInfo(BisInspPreListParam inspPreListParam) {
  28. PageHelper.startPage(inspPreListParam);
  29. List<BisInspPreList> list = this.bisInspPreListDao.findAlListInfo(inspPreListParam);
  30. PageInfo<BisInspPreList> pageInfo = new PageInfo(list);
  31. return pageInfo;
  32. }
  33. }