package cn.com.goldenwater.dcproj.service.impl.rsvr; import cn.com.goldenwater.dcproj.dao.BisInspPreListDao; import cn.com.goldenwater.dcproj.model.BisInspPreList; import cn.com.goldenwater.dcproj.param.BisInspPreListParam; import cn.com.goldenwater.dcproj.service.BisInspPreListService; import cn.com.goldenwater.core.service.AbstractCrudService; 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 2019-2-18 */ @Service @Transactional public class BisInspPreListServiceImpl extends AbstractCrudService implements BisInspPreListService { @Autowired private BisInspPreListDao bisInspPreListDao; public BisInspPreListServiceImpl(BisInspPreListDao bisInspPreListDao) { super(bisInspPreListDao); this.bisInspPreListDao = bisInspPreListDao; } @Override public PageInfo findAlPageInfo(BisInspPreListParam inspPreListParam) { PageHelper.startPage(inspPreListParam); List list = this.bisInspPreListDao.findAlListInfo(inspPreListParam); PageInfo pageInfo = new PageInfo(list); return pageInfo; } }