Commit 73c9514b6e62a7afa13fa6bb9a5ef9b8b380a64a
1 parent
5b0d1516d4
Exists in
master
and in
8 other branches
修改产妇管理根据日期查询
Showing 1 changed file with 3 additions and 2 deletions
platform-common/src/main/java/com/lyms/platform/common/base/ExceptionHandlerController.java
View file @
73c9514
... | ... | @@ -4,6 +4,7 @@ |
4 | 4 | import java.util.List; |
5 | 5 | import java.util.Map; |
6 | 6 | |
7 | +import javax.servlet.http.HttpServletRequest; | |
7 | 8 | import javax.servlet.http.HttpServletResponse; |
8 | 9 | |
9 | 10 | import org.springframework.http.HttpStatus; |
10 | 11 | |
... | ... | @@ -113,14 +114,14 @@ |
113 | 114 | |
114 | 115 | @ResponseStatus(HttpStatus.OK) |
115 | 116 | @ExceptionHandler(Exception.class) |
116 | - public void buildException(HttpServletResponse httpServletResponse, Exception e) { | |
117 | + public void buildException(HttpServletResponse httpServletResponse, Exception e,HttpServletRequest httpServletRequest) { | |
117 | 118 | try { |
118 | 119 | setHttpResponseHeader(httpServletResponse); |
119 | 120 | Map<String, Object> resultMap = new HashMap<>(); |
120 | 121 | resultMap.put("errorcode", ErrorCodeConstants.SYSTEM_ERROR); |
121 | 122 | resultMap.put("errormsg", "服务器异常."); |
122 | 123 | httpServletResponse.getWriter().print(JsonUtil.obj2JsonString(resultMap)); |
123 | - ExceptionUtils.catchException(e, "ExceptionHandlerController Exception."); | |
124 | + ExceptionUtils.catchException(e, "ExceptionHandlerController Exception. queryStr: "+httpServletRequest.getQueryString()); | |
124 | 125 | } catch (Exception ex) { |
125 | 126 | ExceptionUtils.catchException(ex, "ExceptionHandlerController Write response With handException."); |
126 | 127 | } |