Sfoglia il codice sorgente

空字符串取值bug

wangsy 4 anni fa
parent
commit
ce24df841c

+ 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()))