注释人员绑定OA失败抛异常的代码

This commit is contained in:
yuxueliang0813 2024-12-24 16:15:36 +08:00
parent 7097fd7040
commit c089cf1237
1 changed files with 5 additions and 4 deletions

View File

@ -163,16 +163,17 @@ public class OAUtils {
// 记录日志 // 记录日志
DobeDWUtils.saveLog(billNo, "致远", thirdBody.toJSONString(), thirdPostjson, result, "调用致远用户绑定接口"); DobeDWUtils.saveLog(billNo, "致远", thirdBody.toJSONString(), thirdPostjson, result, "调用致远用户绑定接口");
// 若绑定用户失败抛出异常 // 若绑定用户失败抛出异常
if (!result) { //用户绑定失败不一定代表入参中的每个人都没有绑定成功这里不能进行异常抛出 yxl 202412124
throw new RuntimeException("OA接口绑定用户失败" + thirdPostjson); // if (!result) {
} // throw new RuntimeException("OA接口绑定用户失败" + thirdPostjson);
// }
} }
} catch (Exception e) { } catch (Exception e) {
// 记录异常信息 // 记录异常信息
String errorMessage = String.format("接口异常:%s", e.getMessage()); String errorMessage = String.format("接口异常:%s", e.getMessage());
logger.info(errorMessage); logger.info(errorMessage);
DobeDWUtils.saveLog(billNo, "致远", thirdBody.toJSONString(), e.getMessage(), false, "调用致远用户绑定接口"); DobeDWUtils.saveLog(billNo, "致远", thirdBody.toJSONString(), e.getMessage(), false, "调用致远用户绑定接口");
throw new RuntimeException(e); // throw new RuntimeException(e);
} }
return thirdPostjson; return thirdPostjson;