浏览代码

化验value为空的情况处理

Zhaops 6 年之前
父节点
当前提交
69000538c3
共有 1 个文件被更改,包括 3 次插入1 次删除
  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);