Browse Source

fix

release_toaliyun_real
winter 1 year ago
parent
commit
fa04dd1892
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      mallinkService/src/main/java/com/iformall/print/data/PrintCustomedTableDataHandler.java

+ 3
- 2
mallinkService/src/main/java/com/iformall/print/data/PrintCustomedTableDataHandler.java View File

@@ -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);


Loading…
Cancel
Save