注释人员绑定OA失败抛异常的代码
This commit is contained in:
parent
7097fd7040
commit
c089cf1237
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue