康瑞-请假流程忽略code=99的异常信息

kangrui
dxfeng 2 years ago
parent c0375840b4
commit 5b0f51fc5e

@ -22,4 +22,6 @@ public class KqGlobal {
*/
public static final String SUC_CODE = "1";
public static final String IGNORE_CODE = "99";
}

@ -100,7 +100,7 @@ public class KrLeaveCreateAction implements Action {
new BaseBean().writeLog("########请假流程,requestid={" + requestInfo.getRequestid() + "],接口响应数据:"+ returnStr);
JSONObject jsonObject = JSONObject.parseObject(returnStr);
String code = jsonObject.getString("code");
if (KqGlobal.SUC_CODE.equals(code)) {
if (KqGlobal.SUC_CODE.equals(code) || KqGlobal.IGNORE_CODE.equals(code)) {
return SUCCESS;
}
requestInfo.getRequestManager().setMessagecontent(jsonObject.getString("msg"));

Loading…
Cancel
Save