浏览代码

指标分母为0默认初始值5

chengyao 4 年之前
父节点
当前提交
21e6bd86ec
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      src/main/java/com/diagbot/facade/ConsoleFacade.java

+ 9 - 1
src/main/java/com/diagbot/facade/ConsoleFacade.java

@@ -3045,6 +3045,9 @@ public class ConsoleFacade {
             if(secOp.isPresent()){
                 secMouth = secOp.get();
             }
+            if(secMouth == 0d){
+                secMouth = 5d;
+            }
             //指标一
             String num1 = "0";
             if(secMouth != 0d && secMouth != null && StringUtils.isNotEmpty( baseIndex.get("firWorkNum").toString())){
@@ -3063,6 +3066,9 @@ public class ConsoleFacade {
             if(firOp.isPresent()){
                 firMouth = firOp.get();
             }
+            if(firMouth == 0d){
+                firMouth = 5d;
+            }
             String num3 = "0";
             if(firMouth != 0d && firMouth != null  && StringUtils.isNotEmpty( baseIndex.get("secWorkNum").toString())){
                 //指标二
@@ -3081,7 +3087,9 @@ public class ConsoleFacade {
             if(thrOp.isPresent()){
                 thrMouth = thrOp.get();
             }
-
+            if(thrMouth == 0d){
+                thrMouth = 5d;
+            }
             //指标三
             String num2 = "0";
             if(thrMouth != 0d && thrMouth != null && StringUtils.isNotEmpty( baseIndex.get("firWorkNum").toString())){