Jelajahi Sumber

义乌中心医院:处理手术时间写法为 XXXX年XX月XX日 xx点xx分 ->XXXX年XX月XX日 xx时xx分

wangsy 4 tahun lalu
induk
melakukan
9bae6ce958

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

@@ -43,24 +43,24 @@ public class YwzxyyOperationRecordXmlAnalysis implements YwzxyyXmlAnalysis {
 
             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("手术开始时间"))) {
+                if (structureMap.get("手术开始时间").contains(".")) {
+                    structureMap.put("手术开始时间", structureMap.get("手术开始时间").replace(".", "/"));
+                } else {
+                    CommonAnalysisUtil.repKey(structureMap, "手术开始时间", " ");
+                }
+                structureMap.put("手术开始时间", structureMap.get("手术开始时间").replace("点", "时"));
             }
 
-            if(StringUtil.isNotBlank(structureMap.get("手术结束时间")) && structureMap.get("手术结束时间").contains(".")){
-                structureMap.put("手术结束时间",structureMap.get("手术结束时间").replace(".","/"));
-            }else {
-                CommonAnalysisUtil.repKey(structureMap, "手术结束时间", " ");
+            if (StringUtil.isNotBlank(structureMap.get("手术结束时间"))) {
+                if (structureMap.get("手术结束时间").contains(".")) {
+                    structureMap.put("手术结束时间", structureMap.get("手术结束时间").replace(".", "/"));
+                } else {
+                    CommonAnalysisUtil.repKey(structureMap, "手术结束时间", " ");
+                }
+                structureMap.put("手术结束时间", structureMap.get("手术结束时间").replace("点", "时"));
             }
 
-            if (StringUtil.isNotBlank(structureMap.get("记录时间"))) {
-                structureMap.put("记录时间", structureMap.get("记录时间").replaceAll("时间", ""));
-            }
-            if (StringUtil.isNotBlank(structureMap.get("记录医生"))) {
-                structureMap.put("记录医生", structureMap.get("记录医生").replaceAll("记录医师", ""));
-            }
         } catch (Exception e) {
             log.error(e.getMessage(), e);
         }