|
@@ -1,12 +1,12 @@
|
|
|
package com.diagbot.util;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.diagbot.enums.data.*;
|
|
|
import com.google.common.collect.ImmutableMap;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.google.common.collect.Maps;
|
|
|
-import org.aspectj.util.FileUtil;
|
|
|
import org.dom4j.Document;
|
|
|
import org.dom4j.DocumentHelper;
|
|
|
import org.dom4j.Element;
|
|
@@ -55,7 +55,7 @@ public class YiWuFirstPageRecordXmlUtil {
|
|
|
JSONArray operations = new JSONArray();
|
|
|
specialProcess(structureMap, operationMap, operations);
|
|
|
structureExtMap.put("手术信息", operations);
|
|
|
- structureExtMap = processToValue(structureExtMap);
|
|
|
+// structureExtMap = processToValue(structureExtMap);
|
|
|
return structureExtMap;
|
|
|
}
|
|
|
|
|
@@ -392,13 +392,13 @@ public class YiWuFirstPageRecordXmlUtil {
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
- // xmlToMap(FileUtil.fileRead("C:\\Users\\Administrator\\Desktop\\义务\\jiexi\\n5.xml"));
|
|
|
- /* String xml = FileUtil.fileRead("C:\\Users\\zhangzw\\Desktop\\病案首页xml解析问题\\完整手术解析参考.xml");;
|
|
|
- Map<String, Object> ret = process(xml);
|
|
|
+ //xmlToMap(FileUtil.fileRead("C:\\Users\\Administrator\\Desktop\\义务\\jiexi\\n5.xml"));
|
|
|
+ //String xml = FileUtil.fileRead("C:\\Users\\zhangzw\\Desktop\\病案首页xml解析问题\\完整手术解析参考.xml");
|
|
|
+ Map<String, Object> ret = process("");
|
|
|
// JSONObject jsonObject = (JSONObject) ret.get("IDs");
|
|
|
String jsonStr = JSONObject.toJSONString(ret.get("IDs"));
|
|
|
System.out.println(jsonStr);
|
|
|
- System.out.println(ret);*/
|
|
|
+ System.out.println(ret);
|
|
|
}
|
|
|
|
|
|
private static List<String> keyContrasts = Lists.newArrayList(
|