|
|
@@ -423,7 +423,11 @@ public class PdfUtil {
|
|
|
dealImageCell((List<String>) data.get("approveSign"), table, 1, 80, 30, 2, 1);
|
|
|
createPDFCell(tableFont, table, "登记人签字", Element.ALIGN_MIDDLE, 1, 1);
|
|
|
dealImageCell((List<String>) data.get("submitSign"), table, 1, 80, 30, 2, 1);
|
|
|
-// /statics/2023/12/05/20231205183106A001.png
|
|
|
+ //第8行
|
|
|
+ createPDFCell(tableFont, table, "备注", Element.ALIGN_MIDDLE, 1, 1);
|
|
|
+ createPDFCell(tableFont, table, data.get("remark").toString(), Element.ALIGN_MIDDLE, 5, 1);
|
|
|
+
|
|
|
+
|
|
|
//证件图片
|
|
|
createPDFCell(tableFont, table, "证件图片", Element.ALIGN_MIDDLE, 1, 1);
|
|
|
//证件图片 图片填充
|
|
|
@@ -440,10 +444,32 @@ public class PdfUtil {
|
|
|
cell1.addElement(imageTable1);
|
|
|
table.addCell(cell1);
|
|
|
|
|
|
+ // 核查结果图片为非必填,没有图片时不显示
|
|
|
+ List<String> checkImages= (List<String>) data.get("checkImage");
|
|
|
+ if(!checkImages.isEmpty())
|
|
|
+ {
|
|
|
+ createPDFCell(tableFont, table, "核查结果", Element.ALIGN_MIDDLE, 1, 1);
|
|
|
+ final PdfPTable imageTable3 = getImage((List<String>) data.get("checkImage"), 2, 190, 190, 2);
|
|
|
+ final PdfPCell cell3 = new PdfPCell();
|
|
|
+ cell3.setNoWrap(false);
|
|
|
+ cell3.setPaddingLeft(4f);
|
|
|
+ cell3.setPaddingRight(4f);
|
|
|
+ cell3.setPaddingBottom(4f);
|
|
|
+ cell3.setPaddingTop(4f);
|
|
|
+ cell3.setColspan(5);
|
|
|
+ cell3.setRowspan(1);
|
|
|
+ //cell1.setBorder(Rectangle.LEFT | Rectangle.RIGHT | Rectangle.BOTTOM);
|
|
|
+ cell3.addElement(imageTable3);
|
|
|
+ table.addCell(cell3);
|
|
|
+ document.add(table);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
List<String> files= (List<String>) data.get("file");
|
|
|
List<String> files1=new ArrayList<>();
|
|
|
List<String> files2= new ArrayList<>();
|
|
|
- if(ObjectUtil.isNotEmpty(files))
|
|
|
+ // 没有 核查结果 图片 时 需要把 介绍信图片上移
|
|
|
+ if(ObjectUtil.isNotEmpty(files) && ObjectUtil.isEmpty(checkImages))
|
|
|
{
|
|
|
files1= files.subList(0,1);
|
|
|
if(files.size()>1)
|
|
|
@@ -451,22 +477,28 @@ public class PdfUtil {
|
|
|
files2= files.subList(1,files.size());
|
|
|
}
|
|
|
}
|
|
|
+ else{
|
|
|
+ files2=files;
|
|
|
+ }
|
|
|
+ // 没有 核查结果 图片 时 需要把 介绍信图片上移
|
|
|
+ if(ObjectUtil.isNotEmpty(files1))
|
|
|
+ {
|
|
|
+ createPDFCell(tableFont, table, "介绍信附件", Element.ALIGN_MIDDLE, 1, 1);
|
|
|
+ final PdfPTable imageTable3 = getImage(files1, 1, 380, 320, 1);
|
|
|
+ final PdfPCell cell3 = new PdfPCell();
|
|
|
+ cell3.setNoWrap(false);
|
|
|
+ cell3.setPaddingLeft(4f);
|
|
|
+ cell3.setPaddingRight(4f);
|
|
|
+ cell3.setPaddingBottom(4f);
|
|
|
+ cell3.setPaddingTop(4f);
|
|
|
+ cell3.setColspan(5);
|
|
|
+ cell3.setRowspan(1);
|
|
|
+ //cell1.setBorder(Rectangle.LEFT | Rectangle.RIGHT | Rectangle.BOTTOM);
|
|
|
+ cell3.addElement(imageTable3);
|
|
|
+ table.addCell(cell3);
|
|
|
+ document.add(table);
|
|
|
+ }
|
|
|
|
|
|
- createPDFCell(tableFont, table, "介绍信附件", Element.ALIGN_MIDDLE, 1, 1);
|
|
|
- final PdfPTable imageTable3 = getImage(files1, 1, 380, 320, 1);
|
|
|
- final PdfPCell cell3 = new PdfPCell();
|
|
|
- cell3.setNoWrap(false);
|
|
|
- cell3.setPaddingLeft(4f);
|
|
|
- cell3.setPaddingRight(4f);
|
|
|
- cell3.setPaddingBottom(4f);
|
|
|
- cell3.setPaddingTop(4f);
|
|
|
- cell3.setColspan(5);
|
|
|
- cell3.setRowspan(1);
|
|
|
- //cell1.setBorder(Rectangle.LEFT | Rectangle.RIGHT | Rectangle.BOTTOM);
|
|
|
- cell3.addElement(imageTable3);
|
|
|
- table.addCell(cell3);
|
|
|
-
|
|
|
- document.add(table);
|
|
|
if(files2.size()>0)
|
|
|
{
|
|
|
PdfPTable innerTable = new PdfPTable(6);
|