| | |
| | | map.put("data", list); |
| | | //站点统计 |
| | | List<StationInf> stationInfList = mapper.getStationInfList(userId); |
| | | //站点数 |
| | | map.put("stationCount", stationInfList.size()); |
| | | //110v/35v/... |
| | | Map<String, List<StationInf>> stationTypeMap = stationInfList.stream().filter(stationInf -> !stationInf.getStationType().equals("")).collect(Collectors.groupingBy(StationInf::getStationType)); |
| | | Set<String> stationTypeSet = stationTypeMap.keySet(); |
| | |
| | | public Response getDevOpSkipHead(int userId) { |
| | | try { |
| | | Map<String, Object> map = new HashMap(); |
| | | /* //头部统计数据 |
| | | //头部统计数据 |
| | | int stationNum = mapper.getStation(userId); |
| | | map.put("stationNum", stationNum);*/ |
| | | map.put("stationNum", stationNum); |
| | | //浮充/充电 |
| | | List<BattRtstate> stateList = rtstateMapper.getBattStateStatic(userId); |
| | | Map<String, Integer> statemap = new HashMap(); |
| | |
| | | map.put("fusemap", fusemap); |
| | | //站点统计 |
| | | List<StationInf> stationInfList = mapper.getStationInfList(userId); |
| | | //站点数 |
| | | map.put("stationCount", stationInfList.size()); |
| | | //110v/35v/... |
| | | Map<String, List<StationInf>> stationTypeMap = stationInfList.stream().filter(stationInf -> !stationInf.getStationType().equals("")).collect(Collectors.groupingBy(StationInf::getStationType)); |
| | | Set<String> stationTypeSet = stationTypeMap.keySet(); |