|
|
|
@@ -22,7 +22,6 @@ public class PrintCustomedTableDataHandler{ |
|
|
|
for (Iterator<String> it = entity.keySet().iterator(); it.hasNext();) { |
|
|
|
String fieldName = it.next(); |
|
|
|
//Object o = entity.get(fieldName); |
|
|
|
System.out.println(">>>>>>>>>>"+fieldName); |
|
|
|
if (StringUtils.isBlank(fieldName)) { |
|
|
|
}else { |
|
|
|
Object o = objectParser.getObjectValue(fieldName, object,params); |
|
|
|
@@ -45,6 +44,7 @@ public class PrintCustomedTableDataHandler{ |
|
|
|
} |
|
|
|
Document doc = Jsoup.parse(componentContent); |
|
|
|
Element titleTr = doc.getElementById("titletr"); |
|
|
|
int trindex = titleTr.siblingIndex(); |
|
|
|
List<Node> titleAllTds = titleTr.childNodes(); |
|
|
|
List<Node> titleTds = new ArrayList<Node>();; |
|
|
|
for (int i = 0 ; i < titleAllTds.size() ; i ++) { |
|
|
|
@@ -58,7 +58,8 @@ public class PrintCustomedTableDataHandler{ |
|
|
|
for (int i = 0 ; i < listdata.size(); i ++) { |
|
|
|
Object object = listdata.get(i); |
|
|
|
Element tr = new Element("tr"); |
|
|
|
titleTr.parent().insertChildren(i+1, tr); |
|
|
|
titleTr.parent().insertChildren(trindex+1, tr); |
|
|
|
trindex = trindex+1; |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(trclass)) { |
|
|
|
tr.attr("class", trclass); |
|
|
|
|