Effort Task #4099 Cost:0.5h 合并行和列数字调整

This commit is contained in:
chenyunlong 2023-07-27 21:32:42 +08:00
parent b69f6af1e7
commit c0c7ae7f15

View File

@ -248,7 +248,7 @@ public class ContractService {
//如果是签收单则需要合并单元格
if (Consts.RECEIPT_FORM.equals(templateName)){
List<Object> invoiceResList = (List<Object>) MapUtils.getObject(dataMap, "invoiceResList");
mergeCell(xwpfDocument,0,6,6+invoiceResList.size()-1,Arrays.asList(4,5));
mergeCell(xwpfDocument,0,7,7+invoiceResList.size()-1,Arrays.asList(5,6));
}
String docxFile = "/"+ UUID.randomUUID().toString().replace("-", "") + ".docx";
String pdfName = "/"+ UUID.randomUUID().toString().replace("-", "") + ".pdf";