|
@@ -1556,7 +1556,6 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
//输出流
|
|
|
|
|
|
|
|
|
-
|
|
|
FileOutputStream outputStream = new FileOutputStream(excelPath);
|
|
|
workbook.write(outputStream);
|
|
|
FileUtils.setExcelScaleToPdf(excelPath, pdfPath);
|
|
@@ -1775,29 +1774,28 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
String querySql = "select * from " + wbsTreePrivate.getInitTableName() + " where p_key_id=" + pkeyId + " and group_id = " + groupId;
|
|
|
List<Map<String, Object>> dataIn = jdbcTemplate.queryForList(querySql);
|
|
|
|
|
|
- // 匹配关联
|
|
|
+ //匹配关联
|
|
|
try {
|
|
|
- /*File file1 = ResourceUtil.getFile(wbsTreePrivate.getHtmlUrl());*/
|
|
|
String fileUrl = wbsTreePrivate.getHtmlUrl();
|
|
|
File file1 = ResourceUtil.getFile(fileUrl);
|
|
|
- InputStream fileInputStream = null;
|
|
|
+ InputStream fileInputStream;
|
|
|
if (file1.exists()) {
|
|
|
fileInputStream = new FileInputStream(file1);
|
|
|
} else {
|
|
|
String path = sys_file_net_url + fileUrl.replaceAll("//", "/").replaceAll(file_path, "");
|
|
|
fileInputStream = CommonUtil.getOSSInputStream(path);
|
|
|
}
|
|
|
-
|
|
|
String htmlString = IoUtil.readToString(fileInputStream);
|
|
|
-
|
|
|
+ htmlString = htmlString.replaceAll("placeholder", "placeholderxx");
|
|
|
+ htmlString = htmlString.replaceAll("title", "titlexx");
|
|
|
Document doc = Jsoup.parse(htmlString);
|
|
|
//匹配
|
|
|
- Elements bgHB = doc.select("el-input[placeholder~=报告编号.*]");
|
|
|
- Elements jlBH = doc.select("el-input[placeholder~=记录编号.*]");
|
|
|
- Elements gcName = doc.select("el-input[placeholder~=工程名称.*]");
|
|
|
- Elements sgName = doc.select("el-input[placeholder~=施工单位.*]");
|
|
|
- Elements wtName = doc.select("el-input[placeholder~=委托单位.*]");
|
|
|
- Elements htdName = doc.select("el-input[placeholder~=合同段/工区.*]");
|
|
|
+ Elements bgHB = doc.select("el-input[placeholderxx~=报告编号.*]");
|
|
|
+ Elements jlBH = doc.select("el-input[placeholderxx~=记录编号.*]");
|
|
|
+ Elements gcName = doc.select("el-input[placeholderxx~=工程名称.*]");
|
|
|
+ Elements sgName = doc.select("el-input[placeholderxx~=施工单位.*]");
|
|
|
+ Elements wtName = doc.select("el-input[placeholderxx~=委托单位.*]");
|
|
|
+ Elements htdName = doc.select("el-input[placeholderxx~=合同段/工区.*]");
|
|
|
|
|
|
ContractInfo contractInfo = jdbcTemplate.query("select construction_unit_name,supervision_unit_name,contract_name from m_contract_info where id = " + contractId, new BeanPropertyRowMapper<>(ContractInfo.class)).stream().findAny().orElse(null);
|
|
|
if (contractInfo != null) {
|
|
@@ -1879,9 +1877,9 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
if (StringUtils.isNotEmpty(tabData[0])) {
|
|
|
reData.put(key + "__" + tabData[1], sql);
|
|
|
}
|
|
|
- } else if (tabVal.contains("T") && tabVal.contains(".000Z")) { //时间
|
|
|
+ } else if (tabVal.indexOf("T") >= 0 && tabVal.indexOf(".000Z") >= 0) {//时间
|
|
|
// 时间和字符串合作
|
|
|
- if (tabVal.contains("☆")) {
|
|
|
+ if (tabVal.indexOf("☆") >= 0) {
|
|
|
String[] mysql = tabVal.split("☆");
|
|
|
for (String data : mysql) {
|
|
|
String[] tabData = data.split("_\\^_");
|
|
@@ -1895,7 +1893,7 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
reData.put(key + "__" + tabData[1], tabData[0]);
|
|
|
}
|
|
|
}
|
|
|
- } else if (tabVal.contains("☆")) {
|
|
|
+ } else if (tabVal.indexOf("☆") >= 0) {
|
|
|
String[] mysql = tabVal.split("☆");
|
|
|
for (String data : mysql) {
|
|
|
String[] tabData = data.split("_\\^_");
|
|
@@ -1903,10 +1901,15 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
reData.put(key + "__" + tabData[1], tabData[0]);
|
|
|
}
|
|
|
}
|
|
|
- } else if (tabVal.contains("_^_")) {
|
|
|
+ } else if (tabVal.indexOf("_^_") >= 0) {
|
|
|
String[] tabData = tabVal.split("_\\^_");
|
|
|
if (StringUtils.isNotEmpty(tabData[0])) {
|
|
|
- reData.put(key + "__" + tabData[1], tabData[0]);
|
|
|
+ if (tabVal.contains("[") && tabVal.contains("年")) {
|
|
|
+ String[] strings = StringUtils.strip(tabData[0], "[]").split(",");
|
|
|
+ reData.put(key + "__" + tabData[1], strings);
|
|
|
+ } else {
|
|
|
+ reData.put(key + "__" + tabData[1], tabData[0]);
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
reData.put(key, tabVal);
|
|
@@ -2106,6 +2109,7 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
@Override
|
|
|
public String getBussPDFTrial(Long pkeyId, String contractId, Long id, int pageNumber, int pageNumberCount, TrialSelfInspectionRecordDTO dto) throws Exception {
|
|
|
String file_path = ParamCache.getValue(CommonConstant.SYS_LOCAL_URL);
|
|
|
+ String sys_file_net_url = ParamCache.getValue(CommonConstant.SYS_FILE_NET_URL);
|
|
|
WbsTreePrivate wbsTreePrivate = wbsTreePrivateService.getBaseMapper().selectOne(Wrappers.<WbsTreePrivate>query().lambda()
|
|
|
.eq(WbsTreePrivate::getPKeyId, pkeyId));
|
|
|
if (wbsTreePrivate == null) {
|
|
@@ -2136,10 +2140,12 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
DataInfo.putAll(bussDataInfoTrial.stream().findAny().orElse(null));
|
|
|
}
|
|
|
|
|
|
+ //获取清表excel文件
|
|
|
org.apache.poi.ss.usermodel.Workbook workbook = WorkbookFactory.create(Objects.requireNonNull(CommonUtil.getOSSInputStreamTow(excelTab.getFileUrl())));
|
|
|
Sheet sheet = workbook.getSheetAt(0);
|
|
|
sheet.setForceFormulaRecalculation(true);
|
|
|
Header header = sheet.getHeader();
|
|
|
+
|
|
|
//页眉
|
|
|
if (pageNumber != 0 && pageNumberCount != 0) {
|
|
|
header.setRight("第" + pageNumber + "页,共" + pageNumberCount + "页");
|
|
@@ -2179,143 +2185,151 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //数据不为空
|
|
|
- if (StringUtils.isNotEmpty(wbsTreePrivate.getHtmlUrl())) {
|
|
|
- File htmlFile = ResourceUtil.getFile(wbsTreePrivate.getHtmlUrl());
|
|
|
- if (htmlFile.exists()) {
|
|
|
- String htmlString = IoUtil.readToString(new FileInputStream(htmlFile));
|
|
|
- Document doc = Jsoup.parse(htmlString);
|
|
|
- Element table = doc.select("table").first();
|
|
|
- Elements trs = table.select("tr");
|
|
|
+ //数据不为空,构造数据
|
|
|
+ String fileUrl = wbsTreePrivate.getHtmlUrl();
|
|
|
+ File file1 = ResourceUtil.getFile(fileUrl);
|
|
|
+ InputStream fileInputStream;
|
|
|
+ if (file1.exists()) {
|
|
|
+ fileInputStream = new FileInputStream(file1);
|
|
|
+ } else {
|
|
|
+ String path = sys_file_net_url + fileUrl.replaceAll("//", "/").replaceAll(file_path, "");
|
|
|
+ fileInputStream = CommonUtil.getOSSInputStream(path);
|
|
|
+ }
|
|
|
|
|
|
- Elements bgHB = doc.select("el-input[placeholder~=报告编号.*]");
|
|
|
- Elements jlBH = doc.select("el-input[placeholder~=记录编号.*]");
|
|
|
- if (dto != null) {
|
|
|
- //报告编号
|
|
|
- if (bgHB.size() >= 1 && StringUtils.isNotEmpty(dto.getReportNo())) {
|
|
|
- for (Element element : bgHB) {
|
|
|
- DataInfo.put(element.attr("keyname"), "NUMBER-" + dto.getReportNo());
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- //记录编号
|
|
|
- if (jlBH.size() >= 1 && StringUtils.isNotEmpty(dto.getRecordNo())) {
|
|
|
- for (Element element : jlBH) {
|
|
|
- DataInfo.put(element.attr("keyname"), "NUMBER-" + dto.getRecordNo());
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
+ String htmlString = IoUtil.readToString(fileInputStream);
|
|
|
+ htmlString = htmlString.replaceAll("placeholder", "placeholderxx");
|
|
|
+ htmlString = htmlString.replaceAll("title", "titlexx");
|
|
|
+
|
|
|
+ Document doc = Jsoup.parse(htmlString);
|
|
|
+ Element table = doc.select("table").first();
|
|
|
+ Elements trs = table.select("tr");
|
|
|
+
|
|
|
+ Elements bgHB = doc.select("el-input[placeholderxx~=报告编号.*]");
|
|
|
+ Elements jlBH = doc.select("el-input[placeholderxx~=记录编号.*]");
|
|
|
+ if (dto != null) {
|
|
|
+ //报告编号
|
|
|
+ if (bgHB.size() >= 1 && StringUtils.isNotEmpty(dto.getReportNo())) {
|
|
|
+ for (Element element : bgHB) {
|
|
|
+ DataInfo.put(element.attr("keyname"), "NUMBER-" + dto.getReportNo());
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //记录编号
|
|
|
+ if (jlBH.size() >= 1 && StringUtils.isNotEmpty(dto.getRecordNo())) {
|
|
|
+ for (Element element : jlBH) {
|
|
|
+ DataInfo.put(element.attr("keyname"), "NUMBER-" + dto.getRecordNo());
|
|
|
+ break;
|
|
|
}
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- if (ObjectUtil.isNotEmpty(DataInfo)) {
|
|
|
- for (String val : Objects.requireNonNull(DataInfo).keySet()) {
|
|
|
- if (val.contains("__")) {
|
|
|
- String[] DataVal = val.split("__");
|
|
|
- String[] xy = DataVal[1].split("_");
|
|
|
- if (Integer.parseInt(xy[0]) < trs.size()) {
|
|
|
- Element ytzData = trs.get(Integer.parseInt(xy[0]));
|
|
|
- if (ytzData != null) {
|
|
|
- Elements tdsx = ytzData.select("td");
|
|
|
- if (Integer.parseInt(xy[1]) < tdsx.size()) {
|
|
|
- Element data = ytzData.select("td").get(Integer.parseInt(xy[1]));
|
|
|
- if (data != null) {
|
|
|
- if (data.html().contains("x1") && data.html().contains("y1")) {
|
|
|
- int x1 = 0;
|
|
|
- int x2 = 0;
|
|
|
- int y1 = 0;
|
|
|
- int y2 = 0;
|
|
|
- if (data.html().contains("el-tooltip")) {
|
|
|
- x1 = Integer.parseInt(data.children().get(0).children().get(0).attr("x1"));
|
|
|
- x2 = Integer.parseInt(data.children().get(0).children().get(0).attr("x2"));
|
|
|
- y1 = Integer.parseInt(data.children().get(0).children().get(0).attr("y1"));
|
|
|
+ if (ObjectUtil.isNotEmpty(DataInfo)) {
|
|
|
+ for (String val : Objects.requireNonNull(DataInfo).keySet()) {
|
|
|
+ if (val.contains("__")) {
|
|
|
+ String[] DataVal = val.split("__");
|
|
|
+ String[] xy = DataVal[1].split("_");
|
|
|
+ if (Integer.parseInt(xy[0]) < trs.size()) {
|
|
|
+ Element ytzData = trs.get(Integer.parseInt(xy[0]));
|
|
|
+ if (ytzData != null) {
|
|
|
+ Elements tdsx = ytzData.select("td");
|
|
|
+ if (Integer.parseInt(xy[1]) < tdsx.size()) {
|
|
|
+ Element data = ytzData.select("td").get(Integer.parseInt(xy[1]));
|
|
|
+ if (data != null) {
|
|
|
+ if (data.html().contains("x1") && data.html().contains("y1")) {
|
|
|
+ int x1 = 0;
|
|
|
+ int x2 = 0;
|
|
|
+ int y1 = 0;
|
|
|
+ int y2 = 0;
|
|
|
+ if (data.html().contains("el-tooltip")) {
|
|
|
+ x1 = Integer.parseInt(data.children().get(0).children().get(0).attr("x1"));
|
|
|
+ x2 = Integer.parseInt(data.children().get(0).children().get(0).attr("x2"));
|
|
|
+ y1 = Integer.parseInt(data.children().get(0).children().get(0).attr("y1"));
|
|
|
+ } else {
|
|
|
+ x1 = Integer.parseInt(data.children().get(0).attr("x1"));
|
|
|
+ y1 = Integer.parseInt(data.children().get(0).attr("y1"));
|
|
|
+ }
|
|
|
+ if (x1 == 0) {
|
|
|
+ x1 = 1;
|
|
|
+ }
|
|
|
+ String myData = DataInfo.get(val) + "";
|
|
|
+ if (myData.contains("T") && myData.contains("-") && myData.contains(":")) {
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
|
|
|
+ sdf.setTimeZone(TimeZone.getTimeZone("GTM+8"));
|
|
|
+ SimpleDateFormat formatStr = new SimpleDateFormat("yyyy年MM月dd日");
|
|
|
+ if (myData.contains(",") && myData.contains("]")) {
|
|
|
+
|
|
|
+ myData = myData.replace("[", "").replace("]", "").replaceAll("'", "");
|
|
|
+ String[] dataVal = myData.split(",");
|
|
|
+
|
|
|
+ Date Start_dataStr = sdf.parse(dataVal[0]);
|
|
|
+ Date end_dataStr = sdf.parse(dataVal[1]);
|
|
|
+ String StartDate = formatStr.format(Start_dataStr);
|
|
|
+ String endDate = formatStr.format(end_dataStr);
|
|
|
+ if (StartDate.equals(endDate)) {
|
|
|
+ myData = StartDate;
|
|
|
} else {
|
|
|
- x1 = Integer.parseInt(data.children().get(0).attr("x1"));
|
|
|
- y1 = Integer.parseInt(data.children().get(0).attr("y1"));
|
|
|
+ myData = StartDate + "-" + endDate;
|
|
|
}
|
|
|
- if (x1 == 0) {
|
|
|
- x1 = 1;
|
|
|
+ } else {
|
|
|
+ String[] dataStr = myData.split("T")[0].split("-");
|
|
|
+ myData = StringUtil.format("{}年{}月{}日", dataStr[0], dataStr[1], Integer.parseInt(dataStr[2]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //https:bladex-test-info.oss-cn-chengdu.aliyuncs.com//upload/20220819/b53cb6700db369381e3b03d7737bcdec.jpg__16_1
|
|
|
+ if (myData.contains("https") && myData.contains("aliyuncs")) {
|
|
|
+ InputStream imageIn = CommonUtil.getOSSInputStream(myData);
|
|
|
+ byte[] bytes = IOUtils.toByteArray(imageIn);
|
|
|
+ // 这里根据实际需求选择图片类型
|
|
|
+ int pictureIdx = workbook.addPicture(bytes, 6);
|
|
|
+
|
|
|
+ CreationHelper helper = workbook.getCreationHelper();
|
|
|
+ ClientAnchor anchor = helper.createClientAnchor();
|
|
|
+ anchor.setCol1(x1); // param1是列号
|
|
|
+ anchor.setCol2(x2);
|
|
|
+ anchor.setRow1(y1); // param2是行号
|
|
|
+ anchor.setRow2(y2); // param2是行号
|
|
|
+ //
|
|
|
+ Drawing<?> drawing = sheet.createDrawingPatriarch();
|
|
|
+ anchor.setAnchorType(ClientAnchor.AnchorType.MOVE_AND_RESIZE);
|
|
|
+ // 插入图片
|
|
|
+ Picture pict = drawing.createPicture(anchor, pictureIdx); // 调整图片占单元格百分比的大小,1.0就是100%
|
|
|
+ pict.resize(1, 1);
|
|
|
+ FileUtils.imageOrientation(sheet, anchor, new DataVO(x1 - 1, y1 - 1));
|
|
|
+
|
|
|
+ } else if (myData.equals("1") && data.html().contains("hc-form-checkbox-group")) {
|
|
|
+ Row row = sheet.getRow(y1 - 1);
|
|
|
+ if (row != null) {
|
|
|
+ Cell cell = row.getCell(x1 - 1);
|
|
|
+ if (cell != null) {
|
|
|
+ String exceVal = cell.getStringCellValue().replaceAll(" ", "");
|
|
|
+ short fontIndex = cell.getCellStyle().getFontIndex();
|
|
|
+ Font fontAt = workbook.getFontAt(fontIndex);
|
|
|
+ fontAt.setFontName("EUDC");
|
|
|
+ cell.setCellValue(exceVal.replace("□", "\u2611"));
|
|
|
+ } else {
|
|
|
+ ObjectUtils.isNotEmpty(cell);
|
|
|
}
|
|
|
- String myData = DataInfo.get(val) + "";
|
|
|
- if (myData.contains("T") && myData.contains("-") && myData.contains(":")) {
|
|
|
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
|
|
|
- sdf.setTimeZone(TimeZone.getTimeZone("GTM+8"));
|
|
|
- SimpleDateFormat formatStr = new SimpleDateFormat("yyyy年MM月dd日");
|
|
|
- if (myData.contains(",") && myData.contains("]")) {
|
|
|
-
|
|
|
- myData = myData.replace("[", "").replace("]", "").replaceAll("'", "");
|
|
|
- String[] dataVal = myData.split(",");
|
|
|
-
|
|
|
- Date Start_dataStr = sdf.parse(dataVal[0]);
|
|
|
- Date end_dataStr = sdf.parse(dataVal[1]);
|
|
|
- String StartDate = formatStr.format(Start_dataStr);
|
|
|
- String endDate = formatStr.format(end_dataStr);
|
|
|
- if (StartDate.equals(endDate)) {
|
|
|
- myData = StartDate;
|
|
|
- } else {
|
|
|
- myData = StartDate + "-" + endDate;
|
|
|
- }
|
|
|
- } else {
|
|
|
- String[] dataStr = myData.split("T")[0].split("-");
|
|
|
- myData = StringUtil.format("{}年{}月{}日", dataStr[0], dataStr[1], Integer.parseInt(dataStr[2]));
|
|
|
- }
|
|
|
+ }
|
|
|
+ } else if (myData.contains("NUMBER-JL-") || myData.contains("NUMBER-BG-")) {
|
|
|
+ //记录表号、报告单号
|
|
|
+ Row row = sheet.getRow(y1 - 1);
|
|
|
+ if (row != null) {
|
|
|
+ Cell cell = row.getCell(x1 - 1);
|
|
|
+ if (cell != null) {
|
|
|
+ String replace = myData.replace("NUMBER-", "");
|
|
|
+ cell.setCellValue(replace);
|
|
|
+ } else {
|
|
|
+ ObjectUtils.isNotEmpty(cell);
|
|
|
}
|
|
|
- //https:bladex-test-info.oss-cn-chengdu.aliyuncs.com//upload/20220819/b53cb6700db369381e3b03d7737bcdec.jpg__16_1
|
|
|
- if (myData.contains("https") && myData.contains("aliyuncs")) {
|
|
|
- InputStream imageIn = CommonUtil.getOSSInputStream(myData);
|
|
|
- byte[] bytes = IOUtils.toByteArray(imageIn);
|
|
|
- // 这里根据实际需求选择图片类型
|
|
|
- int pictureIdx = workbook.addPicture(bytes, 6);
|
|
|
-
|
|
|
- CreationHelper helper = workbook.getCreationHelper();
|
|
|
- ClientAnchor anchor = helper.createClientAnchor();
|
|
|
- anchor.setCol1(x1); // param1是列号
|
|
|
- anchor.setCol2(x2);
|
|
|
- anchor.setRow1(y1); // param2是行号
|
|
|
- anchor.setRow2(y2); // param2是行号
|
|
|
- //
|
|
|
- Drawing<?> drawing = sheet.createDrawingPatriarch();
|
|
|
- anchor.setAnchorType(ClientAnchor.AnchorType.MOVE_AND_RESIZE);
|
|
|
- // 插入图片
|
|
|
- Picture pict = drawing.createPicture(anchor, pictureIdx); // 调整图片占单元格百分比的大小,1.0就是100%
|
|
|
- pict.resize(1, 1);
|
|
|
- FileUtils.imageOrientation(sheet, anchor, new DataVO(x1 - 1, y1 - 1));
|
|
|
-
|
|
|
- } else if (myData.equals("1") && data.html().contains("hc-form-checkbox-group")) {
|
|
|
- Row row = sheet.getRow(y1 - 1);
|
|
|
- if (row != null) {
|
|
|
- Cell cell = row.getCell(x1 - 1);
|
|
|
- if (cell != null) {
|
|
|
- String exceVal = cell.getStringCellValue().replaceAll(" ", "");
|
|
|
- short fontIndex = cell.getCellStyle().getFontIndex();
|
|
|
- Font fontAt = workbook.getFontAt(fontIndex);
|
|
|
- fontAt.setFontName("EUDC");
|
|
|
- cell.setCellValue(exceVal.replace("□", "\u2611"));
|
|
|
- } else {
|
|
|
- ObjectUtils.isNotEmpty(cell);
|
|
|
- }
|
|
|
- }
|
|
|
- } else if (myData.contains("NUMBER-JL-") || myData.contains("NUMBER-BG-")) {
|
|
|
- //记录表号、报告单号
|
|
|
- Row row = sheet.getRow(y1 - 1);
|
|
|
- if (row != null) {
|
|
|
- Cell cell = row.getCell(x1 - 1);
|
|
|
- if (cell != null) {
|
|
|
- String replace = myData.replace("NUMBER-", "");
|
|
|
- cell.setCellValue(replace);
|
|
|
- } else {
|
|
|
- ObjectUtils.isNotEmpty(cell);
|
|
|
- }
|
|
|
- }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ Row row = sheet.getRow(y1 - 1);
|
|
|
+ if (row != null) {
|
|
|
+ Cell cell = row.getCell(x1 - 1);
|
|
|
+ if (cell != null) {
|
|
|
+ cell.setCellValue(myData);
|
|
|
} else {
|
|
|
- Row row = sheet.getRow(y1 - 1);
|
|
|
- if (row != null) {
|
|
|
- Cell cell = row.getCell(x1 - 1);
|
|
|
- if (cell != null) {
|
|
|
- cell.setCellValue(myData);
|
|
|
- } else {
|
|
|
- ObjectUtils.isNotEmpty(cell);
|
|
|
- }
|
|
|
- }
|
|
|
+ ObjectUtils.isNotEmpty(cell);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -2326,6 +2340,7 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
// 组装电签设置
|
|
|
QueryWrapper<TextdictInfo> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.select("col_key", "id");
|
|
@@ -2491,7 +2506,7 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
//没有excel表单的不生成pdf
|
|
|
if (StringUtils.isNotEmpty(record.getHtmlUrl())) {
|
|
|
//生成记录表pdf
|
|
|
- String bussPdfInfo = this.getBussPDFTrial(record.getPKeyId(), contractId, id, recordPageNumber++, recordPageNumberCount, null);
|
|
|
+ String bussPdfInfo = this.getBussPDFTrial(record.getPKeyId(), contractId, id, recordPageNumber++, recordPageNumberCount, dto);
|
|
|
if (StringUtils.isNotEmpty(bussPdfInfo)) {
|
|
|
dataPdfUrls.add(bussPdfInfo);
|
|
|
}
|