From c089cf1237459001e625e64f422e068c3c012247 Mon Sep 17 00:00:00 2001 From: yuxueliang0813 <407010292@qq.com> Date: Tue, 24 Dec 2024 16:15:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BA=BA=E5=91=98=E7=BB=91?= =?UTF-8?q?=E5=AE=9AOA=E5=A4=B1=E8=B4=A5=E6=8A=9B=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/java/shkd/utils/OAUtils.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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;