Commit 1c330024 authored by 韩桐桐's avatar 韩桐桐

fix(统计-应急-事件分布 (按场所)):1,设备使用场所的匹配应该用code,不是sequence_nbr

parent ec292913
...@@ -181,9 +181,9 @@ public class YJDPStatisticsServiceImpl { ...@@ -181,9 +181,9 @@ public class YJDPStatisticsServiceImpl {
Map<String, Long> addressNumMap = maps.stream().collect(Collectors.toMap(CountDto::getKeyStr, CountDto::getLongValue)); Map<String, Long> addressNumMap = maps.stream().collect(Collectors.toMap(CountDto::getKeyStr, CountDto::getLongValue));
ydata = dataDictionaries.stream().map(d -> { ydata = dataDictionaries.stream().map(d -> {
Long num = 0L; Long num = 0L;
// 目前USE_PLACE字段存放字典的id // 目前USE_PLACE字段存放字典的code
if (addressNumMap.get(d.getSequenceNbr().toString()) != null) { if (addressNumMap.get(d.getCode()) != null) {
num = addressNumMap.get(d.getSequenceNbr().toString()); num = addressNumMap.get(d.getCode());
} }
// 数据库中老数据历史问题存放字典的name,兼容对老数据的统计 // 数据库中老数据历史问题存放字典的name,兼容对老数据的统计
if (addressNumMap.get(d.getName()) != null) { if (addressNumMap.get(d.getName()) != null) {
......
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