Browse Source

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

chengyao 4 năm trước cách đây
mục cha
commit
21e6bd86ec
1 tập tin đã thay đổi với 9 bổ sung1 xóa
  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())){