Преглед на файлове

Merge remote-tracking branch 'origin/push-5.4.2bug' into push-test

hujing преди 5 години
родител
ревизия
1bdaeae6fb
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      common-push/src/main/java/org/diagbot/common/push/filter/rule/CalcFormula.java

+ 2 - 1
common-push/src/main/java/org/diagbot/common/push/filter/rule/CalcFormula.java

@@ -1,5 +1,6 @@
 package org.diagbot.common.push.filter.rule;
 
+import org.apache.commons.lang3.StringUtils;
 import org.diagbot.common.push.bean.SearchData;
 import org.diagbot.nlp.rule.module.PreResult;
 
@@ -18,7 +19,7 @@ public class CalcFormula {
         String units = "";
         boolean hasCr = false;
         for (PreResult preResult : lis) {
-            if ("肌酐(Cr)".equals(preResult.getDetailName())) {
+            if ("肌酐(Cr)".equals(preResult.getDetailName()) && StringUtils.isNotEmpty(preResult.getValue())) {
                 crValue = preResult.getValue();
                 units = preResult.getUnits();
                 hasCr = true;