src/main/java/com/whyc/service/BattInfService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/whyc/service/Fbs9100StateService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/whyc/service/StationInfService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/whyc/service/BattInfService.java
@@ -584,15 +584,17 @@ */ public Response getDevCountMap(int userId) { try { Map<String, Integer> map = new HashMap<>(); Map<String, Object> map = new HashMap<>(); int battGroupCount = battInfMapper.getBattGroupNum(userId); int devCount = battInfMapper.getDevNum(userId); int powerNum = powerInfService.getNum(userId); int stationNum = stationInfService.getStation(userId); List<StationInf> stationInfList = stationInfService.getStationInfList(userId); int stationNum = stationInfList.size(); map.put("battGroupCount", battGroupCount); map.put("devCount", devCount); map.put("powerNum", powerNum); map.put("stationNum",stationNum); map.put("stationInfList",stationInfList); return new Response().setII(1,true, map,null); }catch (Exception e){ return new Response<>().set(1,false,"发生异常:"+e.getCause()); src/main/java/com/whyc/service/Fbs9100StateService.java
@@ -176,7 +176,7 @@ resultMap.put("预充电数量", resultMap.get("预充电数量") + 1); break; case DeviceConstant.DEV_NUCLEAR_CAP: resultMap.put("核容数量", resultMap.get("核容测试数量") + 1); resultMap.put("核容测试数量", resultMap.get("核容测试数量") + 1); break; case DeviceConstant.DEV_RES_TEST: resultMap.put("内阻测试数量", resultMap.get("内阻测试数量") + 1); src/main/java/com/whyc/service/StationInfService.java
@@ -814,4 +814,8 @@ List<StationInf> list = mapper.getSateAnalysis(userId); return list; } public List<StationInf> getStationInfList(int userId) { return mapper.getStationInfList(userId); } }