Selaa lähdekoodia

义乌中心医院:手术开始时间和结束时间解析更新

wangsy 4 vuotta sitten
vanhempi
commit
dfc9307550

+ 12 - 2
trans/src/main/java/com/lantone/qc/trans/ywzxyy/util/YwzxyyOperationRecordXmlAnalysis.java

@@ -43,8 +43,18 @@ public class YwzxyyOperationRecordXmlAnalysis implements YwzxyyXmlAnalysis {
 
             CommonAnalysisUtil.repKey(structureMap, "记录时间", "时间");
             CommonAnalysisUtil.repKey(structureMap, "记录医生", "记录医师");
-            CommonAnalysisUtil.repKey(structureMap, "手术开始时间", " ");
-            CommonAnalysisUtil.repKey(structureMap, "手术结束时间", " ");
+            if(StringUtil.isNotBlank(structureMap.get("手术开始时间")) && structureMap.get("手术开始时间").contains(".")){
+                structureMap.put("手术开始时间",structureMap.get("手术开始时间").replace(".","/"));
+            }else {
+                CommonAnalysisUtil.repKey(structureMap, "手术开始时间", " ");
+            }
+
+            if(StringUtil.isNotBlank(structureMap.get("手术结束时间")) && structureMap.get("手术结束时间").contains(".")){
+                structureMap.put("手术结束时间",structureMap.get("手术结束时间").replace(".","/"));
+            }else {
+                CommonAnalysisUtil.repKey(structureMap, "手术结束时间", " ");
+            }
+
             if (StringUtil.isNotBlank(structureMap.get("记录时间"))) {
                 structureMap.put("记录时间", structureMap.get("记录时间").replaceAll("时间", ""));
             }