|
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.huyi.service.base.entity.*;
|
|
|
import com.huyi.service.base.service.*;
|
|
|
import com.huyi.service.constant.FileConstants;
|
|
|
+import com.huyi.service.util.DocumentConstant;
|
|
|
import com.keao.tianhu.core.util.AmtUtil;
|
|
|
import com.spire.doc.Document;
|
|
|
import com.spire.doc.FileFormat;
|
|
@@ -506,33 +507,33 @@ public class RecordSealController extends BaseController {
|
|
|
//往word中填充数据
|
|
|
Map<String,Object> ps = new HashMap<>();
|
|
|
//开立方
|
|
|
- ps.put("openName",openName);
|
|
|
+ ps.put(DocumentConstant.OPEN_NAME,openName);
|
|
|
//开立方社会统一代码
|
|
|
- ps.put("openCode",openCode);
|
|
|
+ ps.put(DocumentConstant.OPEN_CODE,openCode);
|
|
|
//开立方银行
|
|
|
- ps.put("openBank",openBank);
|
|
|
+ ps.put(DocumentConstant.OPEN_BANK,openBank);
|
|
|
//开立方账号
|
|
|
- ps.put("openAccount",openAccount);
|
|
|
+ ps.put(DocumentConstant.OPEN_ACCOUNT,openAccount);
|
|
|
//接收方
|
|
|
- ps.put("receiverName",receiverName);
|
|
|
+ ps.put(DocumentConstant.RECEIVER_NAME,receiverName);
|
|
|
//接收方社会统一代码
|
|
|
- ps.put("receiverCode",receiverCode);
|
|
|
+ ps.put(DocumentConstant.RECEIVER_CODE,receiverCode);
|
|
|
//接收方银行
|
|
|
- ps.put("receiverBank",receiverBank);
|
|
|
+ ps.put(DocumentConstant.RECEIVER_BANK,receiverBank);
|
|
|
//接收方账号
|
|
|
- ps.put("receiverAccount",receiverAccount);
|
|
|
+ ps.put(DocumentConstant.RECEIVER_ACCOUNT,receiverAccount);
|
|
|
//小写金额
|
|
|
- ps.put("zfiAmount",AmtUtil.moneyFormat(zfiAmount));
|
|
|
+ ps.put(DocumentConstant.ZFI_AMOUNT,AmtUtil.moneyFormat(zfiAmount));
|
|
|
//大写金额
|
|
|
- ps.put("zfiAmountBig",zfiAmountBig);
|
|
|
+ ps.put(DocumentConstant.ZFI_AMOUNT_BIG,zfiAmountBig);
|
|
|
//起止日期
|
|
|
- ps.put("stopDate",stopDate);
|
|
|
+ ps.put(DocumentConstant.STOP_DATE,stopDate);
|
|
|
//当前日期
|
|
|
- ps.put("currecntDate",currecntDate);
|
|
|
+ ps.put(DocumentConstant.CURRECNT_DATE,currecntDate);
|
|
|
//还款编号
|
|
|
- ps.put("zfiPaymentNumber",zfiPaymentNumber);
|
|
|
+ ps.put(DocumentConstant.ZFI_PAYMENT_NUMBER,zfiPaymentNumber);
|
|
|
//承诺还款日
|
|
|
- ps.put("expireDate",expireDateA);
|
|
|
+ ps.put(DocumentConstant.EXPIRE_DATE,expireDateA);
|
|
|
//调用替换word中的变量
|
|
|
WordUtil.wordTemplate(filePath,filePath,ps);
|
|
|
/**-------- word 变量替换 结束--------**/
|
|
@@ -679,6 +680,22 @@ public class RecordSealController extends BaseController {
|
|
|
financeFileRelService.updateById(financeFileRel);
|
|
|
}
|
|
|
}
|
|
|
+ /**-------- 盖章完成修改融信状态并 开始--------**/
|
|
|
+ //获取此操作员
|
|
|
+ LoginUser userInfo = tokenService.getLoginUser();
|
|
|
+ SysUser user = userInfo.getSysUser();
|
|
|
+ //获取用户编号
|
|
|
+ String userId = user.getUserId()+"";
|
|
|
+ //修改融信状态
|
|
|
+ ZcFinanceInf finance = new ZcFinanceInf();
|
|
|
+ finance.setZfiId(zfiId);
|
|
|
+ //已生效
|
|
|
+ finance.setZfiStatus("02");
|
|
|
+ //修改时间
|
|
|
+ finance.setUpdateTime(DateUtils.getNowDate());
|
|
|
+ //修改人
|
|
|
+ finance.setUpdateBy(userId);
|
|
|
+ financeInfService.updateById(finance);
|
|
|
/**-------- 盖章完成修改融信状态并且发起审批 结束--------**/
|
|
|
return AjaxResult.success();
|
|
|
}
|