Commit deeba0fa190fa0385a6e9493cae89a0fc1de4ab5
1 parent
ed46801a55
Exists in
master
and in
6 other branches
最后诊断异常项筛选枚举
Showing 2 changed files with 75 additions and 1 deletions
platform-common/src/main/java/com/lyms/platform/common/enums/ZhzdycxEnums2.java
View file @
deeba0f
| 1 | +package com.lyms.platform.common.enums; | |
| 2 | + | |
| 3 | +import com.lyms.platform.common.utils.StringUtils; | |
| 4 | + | |
| 5 | +/** | |
| 6 | + * 宫颈癌管理列表增加搜索条件 | |
| 7 | + * 最后诊断异常项 | |
| 8 | + */ | |
| 9 | +public enum ZhzdycxEnums2 { | |
| 10 | + | |
| 11 | + CIN1("1", "CIN1"), | |
| 12 | + CIN2("2", "CIN2"), | |
| 13 | + CIN3("3", "CIN3"), | |
| 14 | + ywxa("4", "原位腺癌"), | |
| 15 | + wxqra("5", "微小浸润癌"), | |
| 16 | + qra("6", "浸润癌"), | |
| 17 | + dcx("7", "滴虫性阴道炎"), | |
| 18 | + wyyd("8", "外阴阴道假丝酵母菌病"), | |
| 19 | + xjx("9", "细菌性阴道病"), | |
| 20 | + wsz("10", "外生殖器尖锐湿疣"), | |
| 21 | + zgjl("11", "子宫肌瘤"), | |
| 22 | + gjy("12", "宫颈炎"); | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + private String id; | |
| 28 | + private String name; | |
| 29 | + | |
| 30 | + public static ZhzdycxEnums2 get(String id) { | |
| 31 | + ZhzdycxEnums2[] values = ZhzdycxEnums2.values(); | |
| 32 | + for (ZhzdycxEnums2 value : values) { | |
| 33 | + if (value.getId().equals(id)) { | |
| 34 | + return value; | |
| 35 | + } | |
| 36 | + } | |
| 37 | + return null; | |
| 38 | + } | |
| 39 | + | |
| 40 | + public static String getName(String id) { | |
| 41 | + if(StringUtils.isEmpty(id)) { | |
| 42 | + return null; | |
| 43 | + } | |
| 44 | + ZhzdycxEnums2[] values = ZhzdycxEnums2.values(); | |
| 45 | + for (ZhzdycxEnums2 value : values) { | |
| 46 | + if (value.id.equals(id)) { | |
| 47 | + return value.name; | |
| 48 | + } | |
| 49 | + } | |
| 50 | + return null; | |
| 51 | + } | |
| 52 | + | |
| 53 | + ZhzdycxEnums2(String id, String name){ | |
| 54 | + this.id = id; | |
| 55 | + this.name = name; | |
| 56 | + } | |
| 57 | + | |
| 58 | + public String getId() { | |
| 59 | + return id; | |
| 60 | + } | |
| 61 | + | |
| 62 | + public void setId(String id) { | |
| 63 | + this.id = id; | |
| 64 | + } | |
| 65 | + | |
| 66 | + public String getName() { | |
| 67 | + return name; | |
| 68 | + } | |
| 69 | + | |
| 70 | + public void setName(String name) { | |
| 71 | + this.name = name; | |
| 72 | + } | |
| 73 | + | |
| 74 | +} |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/CervicalCancerServiceImpl.java
View file @
deeba0f
| ... | ... | @@ -215,7 +215,7 @@ |
| 215 | 215 | |
| 216 | 216 | List<Map<String, Object>> fklcjczd = EnumUtil.toJson(LczdycEnums2.class); /** 妇科检查临床诊断异常项 */ |
| 217 | 217 | List<Map<String, Object>> tBSflbz = EnumUtil.toJson(TbsflbgjgEnums.class); /** TBS分类报告结果 */ |
| 218 | - List<Map<String, Object>> lstZD = EnumUtil.toJson(ZhzdycxEnums.class); /** 最后诊断异常项 */ | |
| 218 | + List<Map<String, Object>> lstZD = EnumUtil.toJson(ZhzdycxEnums2.class); /** 最后诊断异常项 */ | |
| 219 | 219 | |
| 220 | 220 | return RespBuilder.buildSuccess("fklcjczd", fklcjczd, |
| 221 | 221 | "tBSflbz", tBSflbz, |