Commit efddb2c5ad519230611d8032a31ec28cd73fd836

Authored by liquanyu
1 parent 627ff8d539

高危诊断配置

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
... ... @@ -407,7 +407,12 @@
407 407 FPZ(37, "肥胖症",41),
408 408 GZSS(38, "骨质疏松症",41),
409 409 GNSXZ(39, "高尿酸血症",41),
410   - TF(40, "痛风",41);
  410 + TF(40, "痛风",41),
  411 +
  412 + A(41, "-",50),
  413 + B(42, "+",50),
  414 + C(43, "++",50),
  415 + D(44, "+++",50);
411 416  
412 417  
413 418  
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 }