lxw
2023-05-25 f3c27fb78447449a950ba73c5e72ceda64ad8a12
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
    }
}