代码修改

release
xuliangwei 2 years ago
parent 5f4b815379
commit 93d2df137c
  1. 5
      dxhy-erp/src/main/java/com/dxhy/erp/service/impl/RequestRecordServiceImpl.java

@ -167,10 +167,12 @@ public class RequestRecordServiceImpl extends MpBaseServiceImpl<RequestRecordDao
return ResponseEntity.ok(JSONObject.toJSONString(data));
} catch (Exception e) {
log.error("重调出现异常,异常信息:{}", e.getMessage());
e.printStackTrace();
try {
updateFailedRecallRecord(dbRecord, 1, JSONObject.toJSONString(invokeResponse),
JSONObject.toJSONString(data), "重调用出现异常:" + JSONObject.toJSONString(e.getMessage()), 0);
JSONObject.toJSONString(data), "重调用出现异常:" + JSONObject.toJSONString(e.getMessage()), 1);
} catch (Exception exception) {
e.printStackTrace();
log.error("接口重调用保存异常:{}", exception.getMessage());
}
return ResponseEntity.ok(JSONObject.toJSONString(R.error(CommonConstants.MSG_ERR_DEFAULT)));
@ -179,6 +181,7 @@ public class RequestRecordServiceImpl extends MpBaseServiceImpl<RequestRecordDao
}
}
} catch (Exception e) {
e.printStackTrace();
log.info("请求处理异常,异常信息:{}", JSONObject.toJSONString(e));
return ResponseEntity.ok(JSONObject.toJSONString(R.error("请求处理异常,请校正参数!")));
}

Loading…
Cancel
Save