package com.whyc.service;
|
|
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageInfo;
|
import com.whyc.mapper.BattmonStandardcurveMapper;
|
import com.whyc.pojo.BattmonStandardcurve;
|
import org.springframework.stereotype.Service;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
@Service
|
public class BattMonStandardCurveService {
|
|
@Resource
|
private BattmonStandardcurveMapper mapper;
|
|
public PageInfo<BattmonStandardcurve> getPage(int pageNum, int pageSize) {
|
PageHelper.startPage(pageNum,pageSize);
|
List<BattmonStandardcurve> curveList = mapper.selectList(null);
|
return new PageInfo<>(curveList);
|
}
|
}
|