|
@@ -352,6 +352,8 @@ public class RecordSealController extends BaseController {
|
|
|
}
|
|
}
|
|
|
//存放合同编号
|
|
//存放合同编号
|
|
|
List<String> contractIdList = new ArrayList<>();
|
|
List<String> contractIdList = new ArrayList<>();
|
|
|
|
|
+ //融资id
|
|
|
|
|
+ String zfrId = CommonUtil.objToString(map.get("zfrId"));
|
|
|
//获取授信编号
|
|
//获取授信编号
|
|
|
String zfiCoreQuotaId = CommonUtil.objToString(map.get("zfiCoreQuotaId"));
|
|
String zfiCoreQuotaId = CommonUtil.objToString(map.get("zfiCoreQuotaId"));
|
|
|
//获取产品
|
|
//获取产品
|
|
@@ -479,7 +481,7 @@ public class RecordSealController extends BaseController {
|
|
|
//查询合同
|
|
//查询合同
|
|
|
LambdaQueryWrapper<ZcFinanceContract> contractLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<ZcFinanceContract> contractLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
contractLambdaQueryWrapper.in(ZcFinanceContract::getZfcId,contractIdList);
|
|
contractLambdaQueryWrapper.in(ZcFinanceContract::getZfcId,contractIdList);
|
|
|
- contractLambdaQueryWrapper.like(ZcFinanceContract::getZfcNode,"01");
|
|
|
|
|
|
|
+ contractLambdaQueryWrapper.like(ZcFinanceContract::getZfcNode,code);
|
|
|
contractLambdaQueryWrapper.orderByAsc(ZcFinanceContract::getZfcFile);
|
|
contractLambdaQueryWrapper.orderByAsc(ZcFinanceContract::getZfcFile);
|
|
|
contractList = contractService.findZcFinanceContracts(contractLambdaQueryWrapper);
|
|
contractList = contractService.findZcFinanceContracts(contractLambdaQueryWrapper);
|
|
|
if(contractList.size() > 0 ){
|
|
if(contractList.size() > 0 ){
|
|
@@ -583,16 +585,22 @@ public class RecordSealController extends BaseController {
|
|
|
// doc.saveToFile(directory + fileName + currecntDate + ".pdf", FileFormat.PDF);
|
|
// doc.saveToFile(directory + fileName + currecntDate + ".pdf", FileFormat.PDF);
|
|
|
WordPdfUtil.doc2pdf(filePath,directory + fileName + currecntDate + ".pdf");
|
|
WordPdfUtil.doc2pdf(filePath,directory + fileName + currecntDate + ".pdf");
|
|
|
filePath = directory + fileName + currecntDate + ".pdf";
|
|
filePath = directory + fileName + currecntDate + ".pdf";
|
|
|
|
|
+ logger.info("不是已盖章文件的" + filePath + "!!!!!!!!!");
|
|
|
|
|
+ logger.info("不是已盖章文件的" + fileName + "!!!!!!!!!");
|
|
|
|
|
+ System.out.println("====================" + filePath +"++++++++++++++++");
|
|
|
/**-------- word 转PDF 结束--------**/
|
|
/**-------- word 转PDF 结束--------**/
|
|
|
// 是已盖章文件
|
|
// 是已盖章文件
|
|
|
}
|
|
}
|
|
|
-// else {
|
|
|
|
|
-// // 文件服务器的文件下载到本地
|
|
|
|
|
-// PubFileInf fileInf = fileInfService.getById(financeFileList.get(0).getZfrfrFileId());
|
|
|
|
|
-// filePath = downloadFile(fileInf.getPfiFileUrl(), fileInf.getPfiFileName());
|
|
|
|
|
-// int index = fileInf.getPfiFileName().indexOf(".");
|
|
|
|
|
-// fileName = fileInf.getPfiFileName().substring(0,index);
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ else {
|
|
|
|
|
+ // 文件服务器的文件下载到本地
|
|
|
|
|
+ PubFileInf fileInf = fileInfService.getById(financeFileList.get(0).getZffrFileId());
|
|
|
|
|
+ filePath = downloadFile(fileInf.getPfiFileUrl(), fileInf.getPfiFileName());
|
|
|
|
|
+ int index = fileInf.getPfiFileName().indexOf(".");
|
|
|
|
|
+ fileName = fileInf.getPfiFileName().substring(0,index);
|
|
|
|
|
+
|
|
|
|
|
+ logger.info("是已盖章文件的" + filePath + "!!!!!!!!!");
|
|
|
|
|
+ logger.info("是已盖章文件的" + fileName + "!!!!!!!!!");
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
/**-------- 获取合同盖章关键字 开始--------**/
|
|
/**-------- 获取合同盖章关键字 开始--------**/
|
|
|
//获取合同信息
|
|
//获取合同信息
|
|
@@ -680,7 +688,8 @@ public class RecordSealController extends BaseController {
|
|
|
// zc_finance_file_rel 存入数据
|
|
// zc_finance_file_rel 存入数据
|
|
|
//recordFileRel = new ZcFinanceRecordFileRel();
|
|
//recordFileRel = new ZcFinanceRecordFileRel();
|
|
|
recordFileRel.setZfrfrId(IdUtils.fastSimpleUUID());
|
|
recordFileRel.setZfrfrId(IdUtils.fastSimpleUUID());
|
|
|
- recordFileRel.setZfrfrFinanceId(zfiId);
|
|
|
|
|
|
|
+ //融资id
|
|
|
|
|
+ recordFileRel.setZfrfrFinanceId(zfrId);
|
|
|
recordFileRel.setZfrfrContractId(contractList.get(i).getZfcId());
|
|
recordFileRel.setZfrfrContractId(contractList.get(i).getZfcId());
|
|
|
// 已盖章文件
|
|
// 已盖章文件
|
|
|
// }
|
|
// }
|
|
@@ -718,16 +727,16 @@ public class RecordSealController extends BaseController {
|
|
|
// finance.setUpdateBy(userId);
|
|
// finance.setUpdateBy(userId);
|
|
|
// financeInfService.updateById(finance);
|
|
// financeInfService.updateById(finance);
|
|
|
//修改融资状态
|
|
//修改融资状态
|
|
|
- LambdaQueryWrapper<ZcFinanceRecord> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
- queryWrapper.eq(ZcFinanceRecord::getZfrFinanceId,zfiId);
|
|
|
|
|
ZcFinanceRecord zcFinanceRecord = new ZcFinanceRecord();
|
|
ZcFinanceRecord zcFinanceRecord = new ZcFinanceRecord();
|
|
|
|
|
+ //融资id
|
|
|
|
|
+ zcFinanceRecord.setZfrId(zfrId);
|
|
|
//融资状态(00:融资中 01:已放款 02:融资失败 03:已结算 04:合同待签署)
|
|
//融资状态(00:融资中 01:已放款 02:融资失败 03:已结算 04:合同待签署)
|
|
|
zcFinanceRecord.setZfrStatus("00");
|
|
zcFinanceRecord.setZfrStatus("00");
|
|
|
//修改时间
|
|
//修改时间
|
|
|
zcFinanceRecord.setUpdateTime(DateUtils.getNowDate());
|
|
zcFinanceRecord.setUpdateTime(DateUtils.getNowDate());
|
|
|
//修改人
|
|
//修改人
|
|
|
zcFinanceRecord.setUpdateBy(userId);
|
|
zcFinanceRecord.setUpdateBy(userId);
|
|
|
- iZcFinanceRecordService.update(zcFinanceRecord,queryWrapper);
|
|
|
|
|
|
|
+ iZcFinanceRecordService.updateById(zcFinanceRecord);
|
|
|
/**-------- 盖章完成修改融信状态和融资状态 结束--------**/
|
|
/**-------- 盖章完成修改融信状态和融资状态 结束--------**/
|
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|
|
|
}
|
|
}
|