|
|
|
@ -1054,7 +1054,7 @@ public class ChangeManagementServiceImpl extends ServiceImpl<ChangeManagementMap |
|
|
|
// 10、修改变更单的状态为 "审批中" |
|
|
|
data.setChangeStatus("审批中"); |
|
|
|
} catch (Exception e) { |
|
|
|
rollBackFunction(paramData); |
|
|
|
rollBackFunction(paramData, e); |
|
|
|
throw new RuntimeException(e.getMessage()); |
|
|
|
} |
|
|
|
changeManagementMapper.updateChangeStatus(data); |
|
|
|
@ -1226,7 +1226,7 @@ public class ChangeManagementServiceImpl extends ServiceImpl<ChangeManagementMap |
|
|
|
/** |
|
|
|
* 回滚方法 |
|
|
|
*/ |
|
|
|
public void rollBackFunction(ParamData paramData) { |
|
|
|
public void rollBackFunction(ParamData paramData, Exception e) { |
|
|
|
// 撤回接口 |
|
|
|
DoForceDrawBackParam doForceDrawBackParam = new DoForceDrawBackParam(); |
|
|
|
doForceDrawBackParam.setUserId(paramData.getUserId()); |
|
|
|
@ -1234,7 +1234,7 @@ public class ChangeManagementServiceImpl extends ServiceImpl<ChangeManagementMap |
|
|
|
String doForceDrawBackURL = apiUrlOa + "/oa/interface/doForceDrawBack"; |
|
|
|
ResponseData doForceDrawBackResponses = HttpClientUtil.doPostByRawWithOA(doForceDrawBackURL, doForceDrawBackParam); |
|
|
|
if (!"0".equals(doForceDrawBackResponses.getCode())) { |
|
|
|
throw new RuntimeException("OA撤回流程异常信息:" + doForceDrawBackResponses.getMsg()); |
|
|
|
throw new RuntimeException(e.getMessage() + "; OA撤回流程异常信息:" + doForceDrawBackResponses.getMsg()); |
|
|
|
} |
|
|
|
// 调用删除流程接口 |
|
|
|
RequestOperatorInfoParam requestOperatorInfoParam = new RequestOperatorInfoParam(); |
|
|
|
@ -1243,8 +1243,9 @@ public class ChangeManagementServiceImpl extends ServiceImpl<ChangeManagementMap |
|
|
|
String deleteRequestURL = apiUrlOa + "/oa/interface/deleteRequest"; |
|
|
|
ResponseData deleteRequestResponses = HttpClientUtil.doPostByRawWithOA(deleteRequestURL, requestOperatorInfoParam); |
|
|
|
if (!"0".equals(deleteRequestResponses.getCode())) { |
|
|
|
throw new RuntimeException("OA删除流程异常信息:" + deleteRequestResponses.getMsg()); |
|
|
|
throw new RuntimeException(e.getMessage() + "; OA删除流程异常信息:" + deleteRequestResponses.getMsg()); |
|
|
|
} |
|
|
|
throw new RuntimeException(e.getMessage()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|