fg电池监控平台的达梦数据库版本
whycxzp
2024-11-11 0f5f5e435cbc4c60ffad2bb84cfe8cc57ea32ddc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.whyc.service;
 
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.whyc.dto.Response;
import com.whyc.mapper.BtsStateChangeInfMapper;
import com.whyc.pojo.BtsStateChangeInf;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
import java.util.List;
 
@Service
public class BtsStateChangeInfService {
 
    @Resource
    private BtsStateChangeInfMapper mapper;
 
    public Response searchByConditon(int pageNum, int pageSize, BtsStateChangeInf binf){
        PageHelper.startPage(pageNum,pageSize);
        List<BtsStateChangeInf> list = mapper.searchByCondition(binf);
        PageInfo<BtsStateChangeInf> pageInfo = new PageInfo<>(list);
        return new Response().set(1,pageInfo,"查询成功");
    }
}