Browse Source

化验value为空的情况处理

Zhaops 6 years atrás
parent
commit
69000538c3
1 changed files with 3 additions and 1 deletions
  1. 3 1
      aipt-service/src/main/java/com/diagbot/facade/ClinicalFacade.java

+ 3 - 1
aipt-service/src/main/java/com/diagbot/facade/ClinicalFacade.java

@@ -81,7 +81,9 @@ public class ClinicalFacade {
             } else {
                 Otherval = (Otherval.trim().length() > 0) ? Otherval.trim() + "\n" : "";
 
-                if (lisres.getMaxValue() != null && lisres.getValue() > lisres.getMaxValue()) {
+                if (lisres.getValue() == null) {
+                    continue;
+                } else if (lisres.getMaxValue() != null && lisres.getValue() > lisres.getMaxValue()) {
                     lisres.setOtherValue(Otherval + lisres.getDetailName() + up);
                 } else if (lisres.getMinValue() != null && lisres.getValue() < lisres.getMinValue()) {
                     lisres.setOtherValue(Otherval + lisres.getDetailName() + down);