|
@@ -2,7 +2,6 @@ package com.lantone.qc.trans.taizhou.util;
|
|
|
|
|
|
import com.google.common.collect.Maps;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
-import com.lantone.qc.trans.changx.util.CxXmlUtil;
|
|
|
import com.lantone.qc.trans.util.http.db.DBUtil;
|
|
|
import org.dom4j.Document;
|
|
|
import org.dom4j.DocumentHelper;
|
|
@@ -53,8 +52,8 @@ public class TzXmlUtil {
|
|
|
*/
|
|
|
public static void main(String[] args) {
|
|
|
|
|
|
- String case_number = "ZY010000656777";
|
|
|
- String mode_id = "1";
|
|
|
+ String case_number = "547209_3";
|
|
|
+ String mode_id = "5";
|
|
|
String nodePath = "//DocObjContent";
|
|
|
try {
|
|
|
Connection connection = DBUtil.getConnection();
|
|
@@ -66,7 +65,8 @@ public class TzXmlUtil {
|
|
|
//遍历
|
|
|
while(rs.next()) {
|
|
|
String context = rs.getString("origin_text");
|
|
|
- Map<String, String> sourceMap = CxXmlUtil.firstLevelNodeValue(nodePath, context);
|
|
|
+// Map<String, String> sourceMap = CxXmlUtil.firstLevelNodeValue(nodePath, context);
|
|
|
+ Map<String, String> sourceMap = TzXmlUtil.getXmlToMapForTZ(context);
|
|
|
for (String key : sourceMap.keySet()) {
|
|
|
System.out.println("\"" + key + "=\",");
|
|
|
}
|