|
@@ -174,6 +174,7 @@ public class ServicePlanServiceImpl extends BaseServiceImpl<ServicePlanMapper, S
|
|
|
Boolean isWater = false;
|
|
|
// 添加标题显示
|
|
|
Elements trs = table.select("tr");
|
|
|
+ int x=0;
|
|
|
for (int i = 1; i < 6; i++) {
|
|
|
Element tr = trs.get(i);
|
|
|
Elements tds = tr.select("td");
|
|
@@ -193,7 +194,7 @@ public class ServicePlanServiceImpl extends BaseServiceImpl<ServicePlanMapper, S
|
|
|
element = trs.get(i - 1).select("td").get(0);
|
|
|
}
|
|
|
}
|
|
|
- if (element != null && Func.isNotEmpty(element)) {
|
|
|
+ if (element != null && Func.isNotEmpty(element)&&x<=0) {
|
|
|
//
|
|
|
Elements allElements = element.children();
|
|
|
if (allElements.size() >= 1) {
|
|
@@ -202,9 +203,11 @@ public class ServicePlanServiceImpl extends BaseServiceImpl<ServicePlanMapper, S
|
|
|
element.text(defText);
|
|
|
} else {
|
|
|
element.text(projectInfo.getProjectName());
|
|
|
+ x+=1;
|
|
|
}
|
|
|
} else {
|
|
|
element.text(projectInfo.getProjectName());
|
|
|
+ x+=1;
|
|
|
}
|
|
|
}
|
|
|
}
|