瀏覽代碼

空字符串取值bug

wangsy 4 年之前
父節點
當前提交
ce24df841c
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0039.java

+ 0 - 7
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0039.java

@@ -44,13 +44,6 @@ public class BEH0039 extends QCCatalogue {
                     || StringUtil.isBlank(allergy.getAllergyFood().getName())) {
                 continue;
             }
-            if (StringUtil.isNotBlank(allergy.getAllergyFood().getName())) {
-                int index = pastText.indexOf(allergy.getAllergyFood().getName());
-                pastText = pastText.substring(Math.max(index - 5, 0), index);
-                if (pastText.contains("有")) {
-                    return;
-                }
-            }
             if ((allergy.getNegative() == null || StringUtil.isBlank(allergy.getNegative().getName()))
                     && (allergy.getAllergyFood().getPd() == null || StringUtil.isBlank(allergy.getAllergyFood().getPd().getName()))
                     && (allergy.getAllergyFood().getDegree() == null || StringUtil.isBlank(allergy.getAllergyFood().getDegree().getName()))