Commit 61678908 authored by gaoyingwei's avatar gaoyingwei

add:增加表单模板xml文件

parent 2dffcaef
...@@ -88,7 +88,8 @@ public class XmlUtil { ...@@ -88,7 +88,8 @@ public class XmlUtil {
if (parentInfo != null){ if (parentInfo != null){
Map<String, Object> tempMap = new HashMap<>(); Map<String, Object> tempMap = new HashMap<>();
Element parentCode = (Element) parentInfo.selectSingleNode("./parentCode"); Element parentCode = (Element) parentInfo.selectSingleNode("./parentCode");
tempMap.put(parentCode.getName(),parentCode.getText()); if (parentCode != null) {
tempMap.put(parentCode.getName(), parentCode.getText());
// List childElements1 = parentInfo.elements(); // List childElements1 = parentInfo.elements();
// if (childElements1.size() > 0) { // if (childElements1.size() > 0) {
// Iterator var44 = childElements1.iterator(); // Iterator var44 = childElements1.iterator();
...@@ -101,7 +102,14 @@ public class XmlUtil { ...@@ -101,7 +102,14 @@ public class XmlUtil {
// tempMap.put("isCorp",syncContent.attributeValue("isCorp")); // tempMap.put("isCorp",syncContent.attributeValue("isCorp"));
// map.put("parentInfo",tempMap); // map.put("parentInfo",tempMap);
// } // }
tempMap.put("isCorp",parentCode.attributeValue("isCorp")); tempMap.put("isCorp", parentCode.attributeValue("isCorp"));
Element corpName = (Element) parentInfo.selectSingleNode("./corpName");
if (corpName != null)
tempMap.put(corpName.getName(), corpName.getText());
Element showNum = (Element) parentInfo.selectSingleNode("./showNum");
if (showNum != null)
tempMap.put(showNum.getName(), showNum.getText());
}
map.put("parentInfo",tempMap); map.put("parentInfo",tempMap);
} }
return map; return map;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment