Parcourir la source

生化报警判断逻辑调整

wangmiaomiao il y a 9 mois
Parent
commit
0ca0c4395c

+ 3 - 3
slibra-quartz/src/main/java/com/slibra/quartz/task/AsyncTask.java

@@ -589,14 +589,14 @@ public class AsyncTask {
         BigDecimal jsTdb = xinyiCalculate.getJsTdb();
         BigDecimal jsTdb = xinyiCalculate.getJsTdb();
         BigDecimal jstdbnkzXxz = normConfig.getJstdbnkzXxz();
         BigDecimal jstdbnkzXxz = normConfig.getJstdbnkzXxz();
         if(!Objects.isNull(jsTdb) && !Objects.isNull(jstdbnkzXxz)){
         if(!Objects.isNull(jsTdb) && !Objects.isNull(jstdbnkzXxz)){
-            handleXinYiWarningsSH(jstdbnkzXxz, jsTdb, BusinessEnum.WarningCategoryEnum.TDB.getCode(), tXinyiIndustry, normConfig, false);
+            handleXinYiWarningsSH(jstdbnkzXxz, jsTdb, BusinessEnum.WarningCategoryEnum.TDB.getCode(), tXinyiIndustry, normConfig, true);
         }
         }
 
 
         //进水碳磷比
         //进水碳磷比
         BigDecimal jsTlb = xinyiCalculate.getJsTlb();
         BigDecimal jsTlb = xinyiCalculate.getJsTlb();
         BigDecimal jstlbNkz = normConfig.getJstlbNkz();
         BigDecimal jstlbNkz = normConfig.getJstlbNkz();
         if(!Objects.isNull(jsTlb) && !Objects.isNull(jstlbNkz)){
         if(!Objects.isNull(jsTlb) && !Objects.isNull(jstlbNkz)){
-            handleXinYiWarningsSH(jstlbNkz, jsTlb, BusinessEnum.WarningCategoryEnum.TLB.getCode(), tXinyiIndustry, normConfig, false);
+            handleXinYiWarningsSH(jstlbNkz, jsTlb, BusinessEnum.WarningCategoryEnum.TLB.getCode(), tXinyiIndustry, normConfig, true);
         }
         }
 
 
         //进水BOD与COD比值(生化性)
         //进水BOD与COD比值(生化性)
@@ -606,7 +606,7 @@ public class AsyncTask {
             String[] split = jsbodycodbzGkz.split("-");
             String[] split = jsbodycodbzGkz.split("-");
             sjscgkz = new BigDecimal(split[0]);
             sjscgkz = new BigDecimal(split[0]);
             if(!Objects.isNull(jsBodBCod)){
             if(!Objects.isNull(jsBodBCod)){
-                handleXinYiWarningsSH(sjscgkz, jsBodBCod, BusinessEnum.WarningCategoryEnum.TLB.getCode(), tXinyiIndustry, normConfig, false);
+                handleXinYiWarningsSH(sjscgkz, jsBodBCod, BusinessEnum.WarningCategoryEnum.TLB.getCode(), tXinyiIndustry, normConfig, true);
             }
             }
         }
         }