| | |
| | | /* |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | |
| | | import com.whyc.mapper.BattInfMapper; |
| | | import com.whyc.mapper.BattTestInfMapper; |
| | | import com.whyc.pojo.*; |
| | | import com.whyc.pojo.db_batt.BattInf; |
| | | import com.whyc.pojo.db_dis_batt.BattTestInf; |
| | | import com.whyc.util.ActionUtil; |
| | | import com.whyc.util.PageInfoUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | |
| | | //查询充放电记录 |
| | | public Response getTinfHis(int binfId, int pageNum, int pageSize) { |
| | | PageHelper.startPage(pageNum,pageSize); |
| | | QueryWrapper wrapper= Wrappers.query(); |
| | | wrapper.eq("binf_id",binfId); |
| | | List<BattTestInf> list=mapper.selectList(wrapper); |
| | | PageInfo pageInfo=new PageInfo(list); |
| | | return new Response().setII(1,list!=null,pageInfo,"查询充放电记录"); |
| | | public Response getPageByBattGroupId(int battGroupId, int pageNum, int pageSize) { |
| | | PageHelper.startPage(pageNum, pageSize); |
| | | QueryWrapper wrapper = Wrappers.query(); |
| | | wrapper.eq("binf_id", battGroupId); |
| | | List<BattTestInf> list = mapper.selectList(wrapper); |
| | | PageInfo pageInfo = new PageInfo(list); |
| | | return new Response().set(1, pageInfo); |
| | | } |
| | | |
| | | /* |
| | | //1.4电池性能评估 |
| | | public Response searchGroupAssess(int pageNum, int pageSize, ReportBattDTO tinf, int userId){ |
| | | //List<BattInf> battinfList = binfMapper.searchGroupAssess(tinf, userId); |
| | |
| | | } |
| | | |
| | | */ |
| | | /*劣化:本年度未放电,内阻告警(预告警(重要),告警(紧急)) |
| | | *容量小于劣化阈值,大于损坏阈值,内阻告警(预告警,告警) |
| | | * 容量小于劣化阈值,内阻正常 |
| | | * 容量正常,内阻告警(预告警,告警) |
| | | *//* |
| | | /*劣化:本年度未放电,内阻告警(预告警(重要),告警(紧急)) |
| | | *容量小于劣化阈值,大于损坏阈值,内阻告警(预告警,告警) |
| | | * 容量小于劣化阈值,内阻正常 |
| | | * 容量正常,内阻告警(预告警,告警) |
| | | *//* |
| | | |
| | | if (((disNum==0)&&(listALmRes.size()>0)) |
| | | ||((disNum>0)&&(realCap <= capAlarm * monCapStd && realCap >= capChange * monCapStd)&&(listALmRes.size()>0)) |
| | |
| | | } |
| | | //查询电池告警(2024。4.15修改) |
| | | */ |
| | | /*未放电:本年度未放电 |
| | | /*未放电:本年度未放电 |
| | | *优秀:本年度已放电,且容量健康,无内阻告警(预告警(重要),告警(紧急)) |
| | | *劣化:本年度未放电,内阻告警(预告警(重要),告警(紧急)) |
| | | * 容量小于劣化阈值,大于损坏阈值,内阻告警(预告警,告警) |
| | |
| | | map.put("flag", 1); |
| | | } |
| | | */ |
| | | /*劣化: |
| | | *容量小于劣化阈值,大于损坏阈值 |
| | | *//* |
| | | /*劣化: |
| | | *容量小于劣化阈值,大于损坏阈值 |
| | | *//* |
| | | |
| | | if (((disNum > 0) && (realCap <= capAlarm * monCapStd && realCap >= capChange * monCapStd))) { |
| | | map.put("flag", 2); |
| | |
| | | return new Response().set(1, map, "查询成功"); |
| | | } |
| | | |
| | | }*/ |
| | | }*/ |
| | | } |