|
@@ -1728,7 +1728,9 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
} else {
|
|
|
R bussPdfInfo = this.getBussPdfInfo(wbsInfo.getPKeyId());
|
|
|
if (bussPdfInfo.getCode() == 200) {
|
|
|
- data.add(bussPdfInfo.getData() + "");
|
|
|
+ if (StringUtils.isNotBlank(bussPdfInfo.getData()+"")) {
|
|
|
+ data.add(bussPdfInfo.getData() + "");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
// }
|
|
@@ -1740,24 +1742,25 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
if (tabpdf2.exists()) {
|
|
|
tabpdf2.delete();
|
|
|
}
|
|
|
-
|
|
|
- //资料填报原始pdf合并
|
|
|
- FileUtils.mergePdfPublicMethods(data, listPdf);
|
|
|
- BladeFile bladeFile = this.newIOSSClient.uploadFile(nodeId + ".pdf", listPdf);
|
|
|
-
|
|
|
- //获取当前填报节点sort
|
|
|
- WbsTreeContract wbsTreeContract = wbsTreeContractService.getBaseMapper().selectOne(Wrappers.<WbsTreeContract>lambdaQuery().eq(WbsTreeContract::getPKeyId, nodeId));
|
|
|
- System.out.println("wbsTreeContract==" + wbsTreeContract);
|
|
|
- //获取顺序
|
|
|
- int sort = 0;
|
|
|
- if (ObjectUtil.isNotEmpty(wbsTreeContract)) {
|
|
|
- if (wbsTreeContract.getSort() != null) {
|
|
|
- sort = wbsTreeContract.getSort();
|
|
|
- contractId = wbsTreeContract.getContractId();
|
|
|
+ if (data.size() >= 1) {
|
|
|
+ //资料填报原始pdf合并
|
|
|
+ FileUtils.mergePdfPublicMethods(data, listPdf);
|
|
|
+ BladeFile bladeFile = this.newIOSSClient.uploadFile(nodeId + ".pdf", listPdf);
|
|
|
+
|
|
|
+ //获取当前填报节点sort
|
|
|
+ WbsTreeContract wbsTreeContract = wbsTreeContractService.getBaseMapper().selectOne(Wrappers.<WbsTreeContract>lambdaQuery().eq(WbsTreeContract::getPKeyId, nodeId));
|
|
|
+ System.out.println("wbsTreeContract==" + wbsTreeContract);
|
|
|
+ //获取顺序
|
|
|
+ int sort = 0;
|
|
|
+ if (ObjectUtil.isNotEmpty(wbsTreeContract)) {
|
|
|
+ if (wbsTreeContract.getSort() != null) {
|
|
|
+ sort = wbsTreeContract.getSort();
|
|
|
+ contractId = wbsTreeContract.getContractId();
|
|
|
+ }
|
|
|
}
|
|
|
+ String sql = "update u_information_query set pdf_url ='" + bladeFile.getLink() + "' , sort = " + sort + " where classify='" + classify + "' and wbs_id='" + nodeId + "' and contract_id ='" + contractId + "' ";
|
|
|
+ jdbcTemplate.execute(sql);
|
|
|
}
|
|
|
- String sql = "update u_information_query set pdf_url ='" + bladeFile.getLink() + "' , sort = " + sort + " where classify='" + classify + "' and wbs_id='" + nodeId + "' and contract_id ='" + contractId + "' ";
|
|
|
- jdbcTemplate.execute(sql);
|
|
|
}
|
|
|
|
|
|
@Override
|