Ver Fonte

1.bugfix
2.新增app阈值设置分组查询

lengfaqiang há 2 anos atrás
pai
commit
e359b659ef

+ 1 - 1
slope-modules/slope-detection/src/main/java/com/sckw/slope/detection/service/DeviceService.java

@@ -437,7 +437,7 @@ public class DeviceService {
                     put("code", DictEnum.MODEL_PART.getCodeType());
                     put("type", "1");
                 }});
-                String itemName = dictList == null ? item : dictList.get(item).getLabel();
+                String itemName = dictList == null ? item : (dictList.get(item)==null?item:dictList.get(item).getLabel());
                 BigDecimal originalValue = re.getOriginalValue();
                 BigDecimal currentValue = re.getCurrentValue();
                 BigDecimal offset = re.getOffset();