From 1b8df606d7af83af8158a300d2614d86fa8828c1 Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期二, 27 五月 2025 15:52:48 +0800 Subject: [PATCH] 蓄电池核容信息统计 --- src/main/java/com/whyc/service/BatttestdataInfService.java | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/whyc/service/BatttestdataInfService.java b/src/main/java/com/whyc/service/BatttestdataInfService.java index e9eb6e1..c0fb400 100644 --- a/src/main/java/com/whyc/service/BatttestdataInfService.java +++ b/src/main/java/com/whyc/service/BatttestdataInfService.java @@ -1,6 +1,10 @@ package com.whyc.service; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.whyc.dto.Response; +import com.whyc.dto.Statistic.BattTinfStic; import com.whyc.factory.BattCapFactory; import com.whyc.mapper.BattInfMapper; import com.whyc.mapper.BatttestdataInfMapper; @@ -8,6 +12,8 @@ import com.whyc.pojo.db_station.BattInf; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; + +import java.util.List; @Service public class BatttestdataInfService { @@ -31,4 +37,11 @@ return 0f; } } + //钃勭數姹犳牳瀹逛俊鎭粺璁� + public Response getBattTinfStatistic(BattTinfStic stic) { + PageHelper.startPage(stic.getPageNum(), stic.getPageSize()); + List<BatttestdataInf> list=mapper.getBattTinfStatistic(stic); + PageInfo pageInfo=new PageInfo(list); + return new Response().setII(1,list.size()>0,pageInfo,"钃勭數姹犳牳瀹逛俊鎭粺璁�"); + } } \ No newline at end of file -- Gitblit v1.9.1