Explorar o código

1.手术患者缺术前讨论或术前小结修改逻辑

hujing %!s(int64=5) %!d(string=hai) anos
pai
achega
c76634dfd3

+ 10 - 4
kernel/src/main/java/com/lantone/qc/kernel/catalogue/operationdiscussion/OPE0370.java

@@ -30,12 +30,18 @@ public class OPE0370 extends QCCatalogue {
         if (operationDocs == null || operationDocs.size() < 1) {
             return;
         }
+        int i = 0, j = 0;
         for (OperationDoc operationDoc : operationDocs) {
-            if (operationDoc.getPreoperativeDiscussionDoc() == null) {
-                status.set("-1");
-                info.set("手术记录不一致");
-                return;
+            if (operationDoc.getOperationRecordDoc() != null) {
+                i++;
             }
+            if (operationDoc.getPreoperativeDiscussionDoc() != null) {
+                j++;
+            }
+        }
+        if (i != j) {
+            status.set("-1");
+            info.set("手术记录不一致");
         }
         //            OperationRecordDoc operationRecordDoc = operationDoc.getOperationRecordDoc();
         //            if (operationRecordDoc == null) {