|
|
|
@ -61,10 +61,12 @@ public class KqInteractiveServiceImpl extends Service implements KqInteractiveSe
|
|
|
|
|
String returnStr = HttpUtil.post(KqGlobal.POST_URL + KqInteractiveEnum.LEAVE_BAL.getPostPath(), postParam);
|
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(returnStr);
|
|
|
|
|
String code = jsonObject.getString("code");
|
|
|
|
|
|
|
|
|
|
returnMap.put("code", code);
|
|
|
|
|
if (KqGlobal.SUC_CODE.equals(code)) {
|
|
|
|
|
returnMap.put("dayoffBalHours", jsonObject.getString("dayoffBalHours"));
|
|
|
|
|
} else {
|
|
|
|
|
} else if(KqGlobal.IGNORE_CODE.equals(code)){
|
|
|
|
|
returnMap.put("errormsg", "假期余额获取失败," + jsonObject.getString("msg"));
|
|
|
|
|
}else{
|
|
|
|
|
throw new CustomizeRunTimeException("假期余额获取失败," + jsonObject.getString("msg"));
|
|
|
|
|
}
|
|
|
|
|
return returnMap;
|
|
|
|
|