Commit 7aee2b3b authored by 麻笑宇's avatar 麻笑宇

大屏调整提交

parent 9adf3fec
...@@ -486,11 +486,13 @@ public class ZLDPStatisticsServiceImpl { ...@@ -486,11 +486,13 @@ public class ZLDPStatisticsServiceImpl {
List<DataDictionary> dataDictionaryList = iDataDictionaryService.getByType("ADDRESS"); List<DataDictionary> dataDictionaryList = iDataDictionaryService.getByType("ADDRESS");
dataDictionaryList.stream().forEach(x -> { dataDictionaryList.stream().forEach(x -> {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put(x.getName(), dataMap.getOrDefault(x.getCode(), 0)); map.put("name", x.getName());
map.put("value", dataMap.getOrDefault(x.getCode(), 0));
returnList.add(map); returnList.add(map);
}); });
Map<String, Object> otherMap = new HashMap<>(); Map<String, Object> otherMap = new HashMap<>();
otherMap.put("其他", dataMap.getOrDefault("其他", 0) + dataMap.getOrDefault("", 0)); otherMap.put("name", "其他");
otherMap.put("value", dataMap.getOrDefault("其他", 0) + dataMap.getOrDefault("", 0));
returnList.add(otherMap); returnList.add(otherMap);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment