|
@@ -8,6 +8,7 @@ import com.keao.tianhu.core.util.AmtUtil;
|
|
|
import com.spire.doc.Document;
|
|
|
import com.spire.doc.FileFormat;
|
|
|
import com.tianhu.common.core.cfca.AxqCommonUtil;
|
|
|
+import com.tianhu.common.core.cfca.connector.HttpConnector;
|
|
|
import com.tianhu.common.core.domain.R;
|
|
|
import com.tianhu.common.core.utils.*;
|
|
|
import com.tianhu.common.core.utils.poi.WordUtil;
|
|
@@ -85,6 +86,12 @@ public class RecordSealController extends BaseController {
|
|
|
private RemoteFileService remoteFileService;
|
|
|
@Autowired
|
|
|
private IZcChargeInfService iZcChargeInfService;
|
|
|
+ @Autowired
|
|
|
+ private IZcFinanceInfService iZcFinanceInfService;
|
|
|
+ @Autowired
|
|
|
+ private IZcFinanceRecordService iZcFinanceRecordService;
|
|
|
+ @Autowired
|
|
|
+ private IZcFinanceProComRelService iZcFinanceProComRelService;
|
|
|
/**
|
|
|
* 获取合同文件
|
|
|
* @param map
|
|
@@ -586,7 +593,7 @@ public class RecordSealController extends BaseController {
|
|
|
String userId = "CA74686406B322C7E05311016B0A442F";
|
|
|
//项目编号
|
|
|
String projectCode = DateUtils.dateTimeNow();
|
|
|
- JSONObject jsonObject = AxqCommonUtil.contractSigning(userId,"MM",fileName,keyWords,"0","0","250","250",projectCode,filePath);
|
|
|
+ JSONObject jsonObject = AxqCommonUtil.contractSigning(userId,"MM",fileName,keyWords,"0","0","250","250",projectCode,filePath,new HttpConnector("D:/anxinsign.jks", "123456", "Test", "CA4572A39DCB55ABE05311016B0A04B3"));
|
|
|
/**-------- CFCA盖章 结束--------**/
|
|
|
/**-------- CFCA盖章文件下载 开始--------**/
|
|
|
//获取错误码
|
|
@@ -605,7 +612,7 @@ public class RecordSealController extends BaseController {
|
|
|
//String path = "D:/zhuomian/cfca/";
|
|
|
String path = configService.selectConfigByKey("cfca_file_path").getMsg();
|
|
|
//下载文件
|
|
|
- AxqCommonUtil.downloadFile(contractNo,path);
|
|
|
+ AxqCommonUtil.downloadFile(contractNo,path,new HttpConnector("D:/anxinsign.jks", "123456", "Test", "CA4572A39DCB55ABE05311016B0A04B3"));
|
|
|
/**-------- CFCA盖章文件下载 结束--------**/
|
|
|
//上传到文件服务器
|
|
|
//获取token
|
|
@@ -663,6 +670,21 @@ public class RecordSealController extends BaseController {
|
|
|
|
|
|
@PostMapping("/updateChargeStatus/{zfrId}")
|
|
|
public AjaxResult updateChargeStatus(@PathVariable String zfrId) throws Exception {
|
|
|
+ //融资信息
|
|
|
+ ZcFinanceRecord zcFinanceRecord = iZcFinanceRecordService.getById(zfrId);
|
|
|
+ //融信id
|
|
|
+ String zfrFinanceId = zcFinanceRecord.getZfrFinanceId();
|
|
|
+ //融信信息
|
|
|
+ ZcFinanceInf zcFinanceInf = iZcFinanceInfService.getById(zfrFinanceId);
|
|
|
+ //授信id
|
|
|
+ String coreQuotaId = zcFinanceInf.getZfiCoreQuotaId();
|
|
|
+ //授信信息
|
|
|
+ ZcFinanceProComRel zcFinanceProComRel = iZcFinanceProComRelService.getById(coreQuotaId);
|
|
|
+ //融资放款方式
|
|
|
+ String loanType = zcFinanceProComRel.getZfpcrLoanType();
|
|
|
+ if ("1".equals(loanType) || "2".equals(loanType)){
|
|
|
+
|
|
|
+ }
|
|
|
LambdaQueryWrapper<ZcChargeInf> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
queryWrapper.eq(ZcChargeInf::getZciFinanceId,zfrId);
|
|
|
ZcChargeInf zcChargeInf = new ZcChargeInf();
|