Преглед изворни кода

Merge remote-tracking branch 'origin/dev-ai-input' into dev

hujing пре 5 година
родитељ
комит
2fa5502c11

+ 4 - 5
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0005.java

@@ -22,20 +22,19 @@ import java.util.List;
 @Component
 public class BEH0005 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
+        status.set("0");
         if (inputInfo.getBeHospitalizedDoc() == null) {
-            status.set("0");
             return;
         }
         List<Integer> timeIndex = new ArrayList<>();
         ChiefLabel chiefLabel = inputInfo.getBeHospitalizedDoc().getChiefLabel();
         if (chiefLabel == null) {
-            status.set("0");
             return;
         }
         List<PD> pds = chiefLabel.getPds();
         String chiefText = chiefLabel.getText();
         if (chiefText.contains("检查") || chiefText.contains("术后") || chiefText.contains("药物")) {
-            status.set("0");
+            return;
         } else {
             List<String> words = Lists.newArrayList("年", "月", "周", "天", "日", "时","分");
             String name;
@@ -58,8 +57,8 @@ public class BEH0005 extends QCCatalogue {
                     min = data;
                 }
             }
-            if (min == timeIndex.get(0)) {
-                status.set("0");
+            if (min != timeIndex.get(0)) {
+                status.set("-1");
             }
         }
     }