Browse Source

修改货物覆盖预警:预警分析发短信的需要,暂时将除杭申线之外的卡口覆盖率降到0.7预警

sbj 1 week ago
parent
commit
31d9aecf6a

+ 3 - 0
general-controller-service/src/main/java/com/shanghaichengdi/generalcontrollerservice/faced/DataFaced.java

@@ -2156,13 +2156,16 @@ public class DataFaced {
 //        判断值小于0.7的话 并且 类型砂石和白沙带可以生成,
     //覆盖物分析结果是小数,分析比较是比较0.xxx
     // 预警分析发短信的需要,暂时将除杭申线之外的卡口覆盖率降到0.7预警
+    log.info("覆盖率:"+coverageAnalysis.getCoverageRatio()+",卡口ID:"+coverageAnalysis.getBayonetId());
     if (coverageAnalysis.getCoverageRatio() != null &&
         ( (coverageAnalysis.getCoverageRatio().compareTo(new BigDecimal(0.85)) < 0 && "1".equals(coverageAnalysis.getBayonetId())) ||
             (coverageAnalysis.getCoverageRatio().compareTo(new BigDecimal(0.7)) < 0 && !"1".equals(coverageAnalysis.getBayonetId()))  ) &&
         coverageAnalysis.getTypeClass() != null &&
         ("0".equals(coverageAnalysis.getTypeClass()) || "4".equals(coverageAnalysis.getTypeClass()))) {
+      log.info("=====   是否符合:是");
       return true;
     }
+    log.info("=====   是否符合:否");
     return false;
   }