增加异常处理生效访问用友接口日志
This commit is contained in:
@ -397,11 +397,12 @@ public class ProjectExceptionServiceImpl extends BaseServiceImpl<ProjectExceptio
|
||||
failRequest.setProjIds(projIds);
|
||||
failRequest.setFailStatus(EbpProjectCommonUtil.FAIL_STATUS_MAP.get(projectException.getExceptionDesc()));
|
||||
failRequest.setFailCause(dictProject.getDicName());
|
||||
log.debug("访问失败接口"+ JsonUtils.objectToJson(failRequest));
|
||||
log.info("访问用友失败接口"+ JsonUtils.objectToJson(failRequest));
|
||||
//调用接口
|
||||
String xid = RootContext.getXID();
|
||||
RootContext.unbind();
|
||||
BaseResponse baseResponse = mallPurpApi.projInvitationFail(failRequest);
|
||||
log.info("访问用友失败接口返回结果"+ JsonUtils.objectToJson(baseResponse));
|
||||
RootContext.bind(xid);
|
||||
if(!baseResponse.isSuccess()){
|
||||
ProjectExceptionEnum.FRAME_EXCEPTION_PROJECT_EXCEPTION_INVITATION_FAIL_ERROR.customValidName(baseResponse.getMessage(),!baseResponse.isSuccess());
|
||||
|
Reference in New Issue
Block a user