Commit 3f53f3f3 authored by 赵啸非's avatar 赵啸非

添加返回http code 500错误

parent 35ec20d0
...@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject; ...@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
import com.mortals.framework.annotation.RepeatSubmit; import com.mortals.framework.annotation.RepeatSubmit;
import com.mortals.framework.annotation.UnAuth; import com.mortals.framework.annotation.UnAuth;
import com.mortals.framework.common.code.PageDisplayType; import com.mortals.framework.common.code.PageDisplayType;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context; import com.mortals.framework.model.Context;
import com.mortals.framework.util.FileUtil; import com.mortals.framework.util.FileUtil;
...@@ -21,6 +22,7 @@ import com.mortals.xhx.common.code.ModStatusEnum; ...@@ -21,6 +22,7 @@ import com.mortals.xhx.common.code.ModStatusEnum;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
...@@ -48,6 +50,19 @@ public class ParamController extends BaseCRUDJsonBodyMappingController<ParamServ ...@@ -48,6 +50,19 @@ public class ParamController extends BaseCRUDJsonBodyMappingController<ParamServ
model.put(KEY_RESULT_DICT, status); model.put(KEY_RESULT_DICT, status);
} }
/**
* @param query
* @param list
* @param context
* @throws AppException
*/
@Override
protected void doListAfter(ParamEntity query, List<ParamEntity> list, Context context) throws AppException {
super.doListAfter(query, list, context);
this.response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
}
@RequestMapping(method = {RequestMethod.GET, RequestMethod.POST}, value = "key") @RequestMapping(method = {RequestMethod.GET, RequestMethod.POST}, value = "key")
@UnAuth @UnAuth
......
...@@ -26,7 +26,8 @@ Content-Type: application/json ...@@ -26,7 +26,8 @@ Content-Type: application/json
{ {
"siteId": 1, "siteId": 1,
"appTypeNotList": [4], "appTypeNotList": [4],
"page": 123123123213123212312231231231, "aaa": 111,
"page": 1,
"size": -1 "size": -1
} }
###自助终端应用列表 ###自助终端应用列表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment