diff --git a/main/java/shkd/utils/OAUtils.java b/main/java/shkd/utils/OAUtils.java index 558848b..cb38879 100644 --- a/main/java/shkd/utils/OAUtils.java +++ b/main/java/shkd/utils/OAUtils.java @@ -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;