|
@@ -1,4 +1,5 @@
|
|
|
package com.lantone.qc.kernel.catalogue.firstpagerecord;
|
|
|
+
|
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
import com.lantone.qc.pub.Content;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
@@ -8,6 +9,7 @@ import com.lantone.qc.pub.model.doc.operation.OperationDiscussionDoc;
|
|
|
import com.lantone.qc.pub.model.doc.operation.OperationDoc;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -23,21 +25,22 @@ public class FIRP0192 extends QCCatalogue {
|
|
|
status.set("0");
|
|
|
FirstPageRecordDoc firstPageRecordDoc = inputInfo.getFirstPageRecordDoc();
|
|
|
List<OperationDoc> operationDocs = inputInfo.getOperationDocs();
|
|
|
- if(operationDocs != null&& operationDocs.size()>0){
|
|
|
+ if (operationDocs != null && operationDocs.size() > 0) {
|
|
|
OperationDoc operationDoc = operationDocs.get(0);
|
|
|
OperationDiscussionDoc operationDiscussionDoc = operationDoc.getOperationDiscussionDoc();
|
|
|
- Map<String, String> docStructureMap = operationDiscussionDoc.getStructureMap();
|
|
|
- Map<String, Object> firstPageRecordDocStructureMap = firstPageRecordDoc.getStructureExtMap();
|
|
|
- String opertaion = docStructureMap.get("手术方式");
|
|
|
- List<Map<String, String>> mapList = (List<Map<String, String>>) firstPageRecordDocStructureMap.get(Content.operative_information);
|
|
|
- if(mapList != null && mapList.size()>0){
|
|
|
- Map<String, String> op = mapList.get(0);
|
|
|
- String oName = op.get(Content.operative_name);
|
|
|
- if(StringUtils.isNotEmpty(opertaion) && !opertaion.equals(oName)){
|
|
|
- status.set("-1");
|
|
|
+ if (operationDiscussionDoc != null) {
|
|
|
+ Map<String, String> docStructureMap = operationDiscussionDoc.getStructureMap();
|
|
|
+ Map<String, Object> firstPageRecordDocStructureMap = firstPageRecordDoc.getStructureExtMap();
|
|
|
+ String opertaion = docStructureMap.get("手术方式");
|
|
|
+ List<Map<String, String>> mapList = (List<Map<String, String>>) firstPageRecordDocStructureMap.get(Content.operative_information);
|
|
|
+ if (mapList != null && mapList.size() > 0) {
|
|
|
+ Map<String, String> op = mapList.get(0);
|
|
|
+ String oName = op.get(Content.operative_name);
|
|
|
+ if (StringUtils.isNotEmpty(opertaion) && !opertaion.equals(oName)) {
|
|
|
+ status.set("-1");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|