From aaa2e601eb2a6806e761d4424fcaaf43a95fdcfd Mon Sep 17 00:00:00 2001
From: whycxzp <perryhsu@163.com>
Date: 星期二, 28 三月 2023 14:07:12 +0800
Subject: [PATCH] 更新地图

---
 src/main/java/com/whyc/service/BattInfService.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/whyc/service/BattInfService.java b/src/main/java/com/whyc/service/BattInfService.java
index 6e8b92a..2728a15 100644
--- a/src/main/java/com/whyc/service/BattInfService.java
+++ b/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());

--
Gitblit v1.9.1