Selaa lähdekoodia

预警的数据展示也区分数据来源

wangmiaomiao 8 kuukautta sitten
vanhempi
commit
1ac543107d

+ 8 - 0
slibra-quartz/src/main/java/com/slibra/quartz/task/RyTask.java

@@ -452,6 +452,14 @@ public class RyTask
         showValueChartBasic.setF(DecimalUtils.getAbsAndScale(tXinyiWarningRecord.getControlVal(), INT_2));
         showValueChartBasic.setF(DecimalUtils.getAbsAndScale(tXinyiWarningRecord.getControlVal(), INT_2));
         showValueChartBasic.setG(DecimalUtils.getAbsAndScale(tXinyiWarningRecord.getDesignVal(), INT_2));
         showValueChartBasic.setG(DecimalUtils.getAbsAndScale(tXinyiWarningRecord.getDesignVal(), INT_2));
 //        showValueChartBasic.setH(Math.min(count, MAX_COUNT));
 //        showValueChartBasic.setH(Math.min(count, MAX_COUNT));
+        //2024年7月20日17:28:17  增加数据来源展示
+        String category = tXinyiWarningRecord.getCategory();
+        if(BusinessEnum.WarningCategoryEnum.CS_COD_YC.getCode().equals(category)
+            || BusinessEnum.WarningCategoryEnum.CS_SS_YC.getCode().equals(category)
+                || BusinessEnum.WarningCategoryEnum.CS_AD_YC.getCode().equals(category))
+            showValueChartBasic.setH(ZAIXIANYIBIAO);
+        else
+            showValueChartBasic.setH(LIANXUJIANCE);
         if(tXinyiWarningRecord.getType() != 2)
         if(tXinyiWarningRecord.getType() != 2)
             showValueChartBasic.setI(status == 0 ? "报警中" : status == 1 ? "用户关闭" : status == 2 ? "系统关闭" : "应急处理中");
             showValueChartBasic.setI(status == 0 ? "报警中" : status == 1 ? "用户关闭" : status == 2 ? "系统关闭" : "应急处理中");
         else
         else

+ 3 - 2
slibra-system/src/main/java/com/slibra/business/res/ShowValueChartBasic.java

@@ -37,8 +37,9 @@ public class ShowValueChartBasic {
     @JSONField(ordinal = 7, name = "标准值")
     @JSONField(ordinal = 7, name = "标准值")
     private BigDecimal g;
     private BigDecimal g;
 
 
-    /*@JSONField(ordinal = 8, name = "数据来源")
-    private String h;*/
+    //2024年7月20日17:19:20  数据来源:在线仪表  或者  连续检测
+    @JSONField(ordinal = 8, name = "数据来源")
+    private String h;
 
 
     @JSONField(ordinal = 9, name = "状态")
     @JSONField(ordinal = 9, name = "状态")
     private String i;
     private String i;