|
|
@@ -226,7 +226,7 @@ public class PdfUtil {
|
|
|
PdfUtil.createPDFCell(tableFont, table, "单位名称", Element.ALIGN_MIDDLE, 2, 0);
|
|
|
PdfUtil.createPDFCell(tableFont, table, data.get("orgName").toString(), Element.ALIGN_MIDDLE, 3, 0);
|
|
|
PdfUtil.createPDFCell(tableFont, table, "检查时间", Element.ALIGN_MIDDLE, 2, 0);
|
|
|
- PdfUtil.createPDFCell(tableFont, table, ObjectUtil.isNotEmpty(data.get("submiterNames")) ? data.get("dateStr").toString() : "", Element.ALIGN_MIDDLE, 3, 0);
|
|
|
+ PdfUtil.createPDFCell(tableFont, table, ObjectUtil.isNotEmpty(data.get("dateStr")) ? data.get("dateStr").toString() : "", Element.ALIGN_MIDDLE, 3, 0);
|
|
|
// 第二行
|
|
|
PdfUtil.createPDFCell(tableFont, table, "检查人", Element.ALIGN_MIDDLE, 2, 0);
|
|
|
PdfUtil.createPDFCell(tableFont, table, data.get("submiterNames").toString(), Element.ALIGN_MIDDLE, 8, 0);
|
|
|
@@ -243,24 +243,26 @@ public class PdfUtil {
|
|
|
final List<SysDictData> dictCache = DictUtils.getDictCache(DictConstants.RESUMPTION_PLAN_EXEC);
|
|
|
final List<String> names = dictCache.stream().map(SysDictData::getDictLabel).collect(Collectors.toList());
|
|
|
if ("1".equals(planTypes)) {
|
|
|
- String s = names.get(0);
|
|
|
- List<LinkedHashMap<String, Object>> lists = (List<LinkedHashMap<String, Object>>) data.get(s);
|
|
|
int o = 1;
|
|
|
- if (ObjectUtil.isNotEmpty(lists)) {
|
|
|
- for (LinkedHashMap<String, Object> listVo : lists) {
|
|
|
- //序号
|
|
|
- PdfUtil.createPDFCell(tableFont, table, String.valueOf(o), PdfPCell.ALIGN_MIDDLE, 2, 0);
|
|
|
- // 检查内容
|
|
|
- String rowContent = listVo.get("pointName")+"";
|
|
|
- PdfUtil.createPDFCell(tableFont, table, rowContent, Element.ALIGN_LEFT, 6, 0);
|
|
|
- // 检查情况
|
|
|
- PdfUtil.createPDFCell(tableFont, table, ObjectUtil.isEmpty(listVo.get("resValue")) ? "" : (((Integer) listVo.get("resValue")) == 0 ? "正常" : "异常"), Element.ALIGN_MIDDLE, 2, 0);
|
|
|
- // 检查人
|
|
|
- //PdfUtil.createPDFCell(tableFont, table, String.valueOf(listVo.get("submitName")), Element.ALIGN_CENTER, 0, 0);
|
|
|
- o++;
|
|
|
+ for (String s : names) {
|
|
|
+ List<LinkedHashMap<String, Object>> lists = (List<LinkedHashMap<String, Object>>) data.get(s);
|
|
|
+ if (ObjectUtil.isNotEmpty(lists)) {
|
|
|
+ for (LinkedHashMap<String, Object> listVo : lists) {
|
|
|
+ //序号
|
|
|
+ PdfUtil.createPDFCell(tableFont, table, String.valueOf(o), PdfPCell.ALIGN_MIDDLE, 2, 0);
|
|
|
+ // 检查内容
|
|
|
+ String rowContent = listVo.get("pointName")+"";
|
|
|
+ PdfUtil.createPDFCell(tableFont, table, rowContent, Element.ALIGN_LEFT, 6, 0);
|
|
|
+ // 检查情况
|
|
|
+ PdfUtil.createPDFCell(tableFont, table, ObjectUtil.isEmpty(listVo.get("resValue")) ? "" : (((Integer) listVo.get("resValue")) == 0 ? "正常" : "异常"), Element.ALIGN_MIDDLE, 2, 0);
|
|
|
+ // 检查人
|
|
|
+ //PdfUtil.createPDFCell(tableFont, table, String.valueOf(listVo.get("submitName")), Element.ALIGN_CENTER, 0, 0);
|
|
|
+ o++;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
} else {
|
|
|
for (String s : names) {
|
|
|
List<LinkedHashMap<String, Object>> lists = (List<LinkedHashMap<String, Object>>) data.get(s);
|