Browse Source

fix: 协议类发起,拓展错误日志拦截

checkBack
Yen 1 year ago
parent
commit
90dff2ed97
  1. 7
      src/main/java/com/qs/serve/modules/tbs/service/impl/TbsCostApplyServiceImpl.java

7
src/main/java/com/qs/serve/modules/tbs/service/impl/TbsCostApplyServiceImpl.java

@ -701,13 +701,15 @@ public class TbsCostApplyServiceImpl extends ServiceImpl<TbsCostApplyMapper,TbsC
flowId = flowId.substring(0,40); flowId = flowId.substring(0,40);
} }
// 协议类发起 // 协议类发起
if(newWay && tbsCostApply.getContractFlag().equals(1)){ if(tbsCostApply.getContractFlag().equals(1)){
if(flowIdResult.getMsg()!=null && flowIdResult.getMsg().length()>45){ if(flowIdResult.getMsg()!=null && flowIdResult.getMsg().length()>45){
log.error(flowIdResult.getMsg()); log.error(flowIdResult.getMsg());
JSONObject object = JSON.parseObject(flowIdResult.getMsg()); JSONObject object = JSON.parseObject(flowIdResult.getMsg());
if(!object.get("code").toString().equals("0")){
Assert.throwEx("流程发起被拦截了"); Assert.throwEx("流程发起被拦截了");
} }
} }
}
String formId = null; String formId = null;
R<String> formIdResult = seeYonService.getFormId(templateCode,tbsCostApply.getId()); R<String> formIdResult = seeYonService.getFormId(templateCode,tbsCostApply.getId());
if(formIdResult.getStatus()==200){ if(formIdResult.getStatus()==200){
@ -925,7 +927,8 @@ public class TbsCostApplyServiceImpl extends ServiceImpl<TbsCostApplyMapper,TbsC
data.put("cmsLink",baseJumpUrl); data.put("cmsLink",baseJumpUrl);
data.put("rowDate",DateUtils.format(LocalDateTime.now(), DateFormatString.DATE_TIME)); data.put("rowDate",DateUtils.format(LocalDateTime.now(), DateFormatString.DATE_TIME));
data.put("rowState","03"); //初始化00
data.put("rowState","00");
//拓展添加审批关联区域 //拓展添加审批关联区域
String saleRegionId = supplier.handleSaleRegionId(); String saleRegionId = supplier.handleSaleRegionId();

Loading…
Cancel
Save