parent
d2ad38a107
commit
b90b472a2e
|
|
@ -134,18 +134,26 @@ public class OAUtils {
|
||||||
* @param thirdPartyMap 第三方数据映射
|
* @param thirdPartyMap 第三方数据映射
|
||||||
*/
|
*/
|
||||||
private static void handleResponse(JSONObject jsonObject, JSONObject pendingsBody, Map<String, Object> thirdPartyMap) {
|
private static void handleResponse(JSONObject jsonObject, JSONObject pendingsBody, Map<String, Object> thirdPartyMap) {
|
||||||
JSONObject data = jsonObject.getJSONObject("data");
|
String code = (String) jsonObject.get("code");
|
||||||
if (data == null || data.isEmpty()) {
|
boolean isSuccess = false;
|
||||||
logger.info("推送OA消息失败!");
|
String logMessage = "";
|
||||||
saveLog("待办:" + (thirdPartyMap.get("billno").toString()), pendingsBody, jsonObject, false);
|
|
||||||
return;
|
if (!"0".equals(code)) {
|
||||||
}
|
logMessage = "推送OA消息失败!";
|
||||||
String operResult = data.getString("operResult");
|
} else {
|
||||||
String logMessage = Objects.equals(operResult, "1") ? "金蝶系统推送OA消息成功!" : "金蝶系统推送OA消息失败!";
|
JSONObject data = jsonObject.getJSONObject("data");
|
||||||
|
if (data == null || data.isEmpty()) {
|
||||||
|
logMessage = "推送OA消息失败!";
|
||||||
|
} else {
|
||||||
|
String operResult = data.getString("operResult");
|
||||||
|
isSuccess = "1".equals(operResult);
|
||||||
|
logMessage = isSuccess ? "推送OA消息成功!" : "推送OA消息失败!";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 记录日志
|
|
||||||
logger.info(logMessage);
|
logger.info(logMessage);
|
||||||
saveLog("待办:" + (thirdPartyMap.get("billno").toString()), pendingsBody, jsonObject, true);
|
saveLog("待办:" + thirdPartyMap.get("billno").toString(), pendingsBody, jsonObject, isSuccess);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue