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