|
@@ -948,6 +948,8 @@ public class OwnMessageController extends BaseController {
|
|
|
}else if("02".equals(companyType)){
|
|
|
//融资企业
|
|
|
//修改融信状态
|
|
|
+ Long aa = System.currentTimeMillis();
|
|
|
+ System.out.println("融资方开立,修改融信开始,时间:"+aa);
|
|
|
ZcFinanceInf finance = new ZcFinanceInf();
|
|
|
finance.setZfiId(zfiId);
|
|
|
//待确权
|
|
@@ -957,7 +959,10 @@ public class OwnMessageController extends BaseController {
|
|
|
//menuId
|
|
|
pp.put("menuId","1000000007");
|
|
|
pp.put("companyId",zfiCoreId);
|
|
|
+ Long A = System.currentTimeMillis();
|
|
|
Map<String,Object> mmp = flowableService.selectApproval(pp);
|
|
|
+ Long B = System.currentTimeMillis();
|
|
|
+ System.out.println("查询有无开启审批,消耗时间:"+(B-A));
|
|
|
//不等于200
|
|
|
if(CommonUtil.compare(CommonUtil.objToString(mmp.get("code")),"200") != 0){
|
|
|
throw new Exception("查询审批流程失败");
|
|
@@ -967,14 +972,21 @@ public class OwnMessageController extends BaseController {
|
|
|
if(openList.size() < 1){
|
|
|
//核心审批通过
|
|
|
finance.setZfiCoreStatus("01");
|
|
|
+ Long t = System.currentTimeMillis();
|
|
|
remoteSystemService.sendNotice(zfiCoreId, zfiId,
|
|
|
"【融信确权】融信编号【" + zfiNumber + "】的资料待盖章,审批发起人【" + userName+"】",
|
|
|
"00",null,"03","0", coreHandler,null, "01", "/credit/confirmationAudit/" + zfiId);
|
|
|
+ Long q = System.currentTimeMillis();
|
|
|
+ System.out.println("新增融信确权,消耗:"+(q-t));
|
|
|
//TODO 经办人发送最终消息通知
|
|
|
+ Long tt = System.currentTimeMillis();
|
|
|
remoteSystemService.sendNotice(zfiCoreId, zfiId,
|
|
|
"确权审批融信编号为" + zfiNumber + "的资料审批已通过",
|
|
|
"01","01",null,"0", coreHandler, null, null, null);
|
|
|
+ Long qq = System.currentTimeMillis();
|
|
|
+ System.out.println("给经办人发消息,消耗:"+(qq-tt));
|
|
|
//确权待办改为已办
|
|
|
+ Long b = System.currentTimeMillis();
|
|
|
LambdaQueryWrapper<SysNotice> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
queryWrapper.eq(SysNotice::getTableId,zfiId);
|
|
|
queryWrapper.eq(SysNotice::getType,"00");
|
|
@@ -983,20 +995,32 @@ public class OwnMessageController extends BaseController {
|
|
|
SysNotice notice = new SysNotice();
|
|
|
notice.setStatus("1");
|
|
|
sysNoticeService.update(notice,queryWrapper);
|
|
|
+ Long y = System.currentTimeMillis();
|
|
|
+ System.out.println("修改确权待办,消耗:"+(y-b));
|
|
|
String title = "【融信待确权】由"+receiverName+"提交的融信【"+zfiNumber+"】,融信金额【"+AmtUtil.moneyFormat(zfiAmount)+"】,(大写:"+zfiAmountBig+"),融信待确权";
|
|
|
+ Long n = System.currentTimeMillis();
|
|
|
remoteSystemService.sendNotice(zfiCoreId,zfiId,title,"00","","02","0",coreHandler,"", "01", "/credit/confirmationAudit/"+zfiId);
|
|
|
+ Long v = System.currentTimeMillis();
|
|
|
+ System.out.println("生成确权待办,消耗:"+(v-n));
|
|
|
}else{
|
|
|
//给核心企业经办人生成一条确权待办
|
|
|
String title = "【融信待确权】由"+receiverName+"提交的融信【"+zfiNumber+"】,融信金额【"+AmtUtil.moneyFormat(zfiAmount)+"】,(大写:"+zfiAmountBig+"),融信待确权";
|
|
|
+ Long n = System.currentTimeMillis();
|
|
|
remoteSystemService.sendNotice(zfiCoreId,zfiId,title,"00","","02","0",coreHandler,"", "01", "/credit/confirmationAudit/"+zfiId);
|
|
|
+ Long v = System.currentTimeMillis();
|
|
|
+ System.out.println("生成确权待办,消耗:"+(v-n));
|
|
|
}
|
|
|
//修改时间
|
|
|
finance.setUpdateTime(DateUtils.getNowDate());
|
|
|
//修改人
|
|
|
finance.setUpdateBy(userId);
|
|
|
financeInfService.updateById(finance);
|
|
|
+ Long p = System.currentTimeMillis();
|
|
|
+ System.out.println("融信修改完成,时间:"+(p));
|
|
|
//增加流程
|
|
|
financeLog.addFinanceLog(zfiId, "合同签署【完成】,融信资料提交于《"+openName+"》确权,确权生效【确权中】", null, FinanceLog.STATUS_TWO);
|
|
|
+ Long u = System.currentTimeMillis();
|
|
|
+ System.out.println("增加合同签署流程,时间:"+u);
|
|
|
}
|
|
|
|
|
|
}
|