| | |
| | | Map<Integer,Integer> allLevelmap=new HashMap<>(); |
| | | Map<String,Integer> allTypemap=new HashMap<>(); |
| | | Map<String,List<BattalarmData>> listmap=new HashMap<>(); |
| | | Map<String,List<BattalarmData>> allListmap=new HashMap<>(); |
| | | //setDefalut(map); |
| | | try { |
| | | //查询b所有实时电池告警信息 |
| | | List<BattalarmData> list=mapper.getAllBattAlarmInSz2(userId); |
| | | allListmap.put("allList",list.stream().limit(10).collect(Collectors.toList())); |
| | | listmap.put("allList",list.stream().limit(10).collect(Collectors.toList())); |
| | | Map<String, List<BattalarmData>> ListMap = list.stream().collect(Collectors.groupingBy(BattalarmData::getStationName9)); |
| | | Map<String,Object> levelMap=new HashMap<>(); |
| | | Map<String,Object> typelMap=new HashMap<>(); |
| | |
| | | map.put("allLevel",allLevelmap); |
| | | map.put("allType",allTypemap); |
| | | map.put("list",listmap); |
| | | map.put("alllist",allListmap); |
| | | return new Response<>().setII(1,true,map,""); |
| | | } catch (Exception e) { |
| | | return new Response<>().set(1,false,""); |