Commit efddb2c5ad519230611d8032a31ec28cd73fd836
1 parent
627ff8d539
Exists in
master
and in
6 other branches
高危诊断配置
Showing 2 changed files with 11 additions and 4 deletions
platform-common/src/main/java/com/lyms/platform/common/enums/DiagnoseEnums.java
View file @
efddb2c
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/EnumsController.java
View file @
efddb2c
... | ... | @@ -3,6 +3,7 @@ |
3 | 3 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
4 | 4 | import com.lyms.platform.common.enums.*; |
5 | 5 | import com.lyms.platform.common.result.BaseObjectResponse; |
6 | +import com.lyms.platform.common.result.BaseResponse; | |
6 | 7 | import com.lyms.platform.common.utils.ExceptionUtils; |
7 | 8 | import com.lyms.platform.common.utils.JsonUtil; |
8 | 9 | import com.lyms.platform.common.utils.StringUtils; |
... | ... | @@ -412,7 +413,7 @@ |
412 | 413 | */ |
413 | 414 | @RequestMapping(value = "/diagnoseEnums", method = RequestMethod.GET) |
414 | 415 | @ResponseBody |
415 | - public Map diagnoseEnums() { | |
416 | + public BaseObjectResponse diagnoseEnums() { | |
416 | 417 | |
417 | 418 | Map topMap = new HashMap(); |
418 | 419 | |
... | ... | @@ -501,8 +502,9 @@ |
501 | 502 | topList.add(itemMap); |
502 | 503 | } |
503 | 504 | |
504 | - topMap.put("listItem",topList); | |
505 | - return topMap; | |
505 | + topMap.put("listItem", topList); | |
506 | + | |
507 | + return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功").setData(topMap); | |
506 | 508 | } |
507 | 509 | |
508 | 510 | } |