Commit b46419610e7047ded73f17c4db5d08d3716d6c88
1 parent
bf67c6d1b3
Exists in
master
and in
6 other branches
妇女健康管理-宫颈癌检索框异常项
宫颈癌检查页面异常项
Showing 3 changed files with 116 additions and 4 deletions
platform-common/src/main/java/com/lyms/platform/common/enums/LczdycEnums2.java
View file @
b464196
| 1 | +package com.lyms.platform.common.enums; | |
| 2 | + | |
| 3 | +import com.lyms.platform.common.utils.StringUtils; | |
| 4 | + | |
| 5 | +/** | |
| 6 | + * 隆化需求用 | |
| 7 | + * 宫颈癌管理列表增加搜索条件 | |
| 8 | + * 妇科检查临床诊断异常项 | |
| 9 | + */ | |
| 10 | +public enum LczdycEnums2 { | |
| 11 | + | |
| 12 | + dcydy("3", "滴虫性阴道炎"), | |
| 13 | + wyjsxmjb("4", "外阴阴道假丝酵母菌病"), | |
| 14 | + xjxydb("5", "细菌性阴道病"), | |
| 15 | + wszq("6", "外生殖器尖锐湿疣"), | |
| 16 | + zgjl("7", "子宫肌瘤"), | |
| 17 | + gjy("8", "宫颈炎"), | |
| 18 | + fjy("9", "附件炎"), | |
| 19 | + fjlxzw("10", "附件良性肿物"), | |
| 20 | + fjexzw("11", "附件恶性肿物"), | |
| 21 | + zgnmy("12", "子宫内膜炎"), | |
| 22 | + zgjy("13", "子宫肌炎"), | |
| 23 | + zgnma("14", "子宫内膜癌"), | |
| 24 | + zgrl("15", "子宫肉瘤"), | |
| 25 | + zgxjz("16", "子宫腺肌症"), | |
| 26 | + jxzgjy("17", "急性子宫颈炎"), | |
| 27 | + mxzgjy("18", "慢性子宫颈炎"), | |
| 28 | + gjxr("19", "宫颈息肉"), | |
| 29 | + zgja("20", "子宫颈癌"), | |
| 30 | + wyy("21", "外阴炎"), | |
| 31 | + wya("22", "外阴癌"), | |
| 32 | + wylzspnbb("23", "外阴鳞状上皮内病变"), | |
| 33 | + wybb("24", "外阴白斑"), | |
| 34 | + wylxzl("25", "外阴良性肿瘤"), | |
| 35 | + wsxydy("26", "萎缩性阴道炎"); | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + private String id; | |
| 40 | + private String name; | |
| 41 | + | |
| 42 | + public static LczdycEnums2 get(String id) { | |
| 43 | + LczdycEnums2[] values = LczdycEnums2.values(); | |
| 44 | + for (LczdycEnums2 value : values) { | |
| 45 | + if (value.getId().equals(id)) { | |
| 46 | + return value; | |
| 47 | + } | |
| 48 | + } | |
| 49 | + return null; | |
| 50 | + } | |
| 51 | + | |
| 52 | + public static String getName(String id) { | |
| 53 | + if(StringUtils.isEmpty(id)) { | |
| 54 | + return null; | |
| 55 | + } | |
| 56 | + LczdycEnums2[] values = LczdycEnums2.values(); | |
| 57 | + for (LczdycEnums2 value : values) { | |
| 58 | + if (value.id.equals(id)) { | |
| 59 | + return value.name; | |
| 60 | + } | |
| 61 | + } | |
| 62 | + return null; | |
| 63 | + } | |
| 64 | + | |
| 65 | + LczdycEnums2(String id, String name){ | |
| 66 | + this.id = id; | |
| 67 | + this.name = name; | |
| 68 | + } | |
| 69 | + | |
| 70 | + public String getId() { | |
| 71 | + return id; | |
| 72 | + } | |
| 73 | + | |
| 74 | + public void setId(String id) { | |
| 75 | + this.id = id; | |
| 76 | + } | |
| 77 | + | |
| 78 | + public String getName() { | |
| 79 | + return name; | |
| 80 | + } | |
| 81 | + | |
| 82 | + public void setName(String name) { | |
| 83 | + this.name = name; | |
| 84 | + } | |
| 85 | + | |
| 86 | +} |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CervicalCancerController.java
View file @
b464196
| ... | ... | @@ -105,6 +105,19 @@ |
| 105 | 105 | return cervicalCancerService.init(); |
| 106 | 106 | } |
| 107 | 107 | /** |
| 108 | + * 隆化需求 | |
| 109 | + * 宫颈癌管理列表增加搜索条件: | |
| 110 | + * 乳腺癌管理列表增加搜索条件: | |
| 111 | + * 初始化 | |
| 112 | + * @Author: shiy | |
| 113 | + * @Date: 2021/10/11 16:13 | |
| 114 | + */ | |
| 115 | + @ResponseBody | |
| 116 | + @RequestMapping(value = "/init2", method = RequestMethod.GET) | |
| 117 | + public BaseResponse init2() { | |
| 118 | + return cervicalCancerService.init2(); | |
| 119 | + } | |
| 120 | + /** | |
| 108 | 121 | * 宫颈癌导出(列表) |
| 109 | 122 | * @param param |
| 110 | 123 | * @param request |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/CervicalCancerServiceImpl.java
View file @
b464196
| ... | ... | @@ -4,10 +4,7 @@ |
| 4 | 4 | import com.lyms.platform.biz.service.CancerScreeningService; |
| 5 | 5 | import com.lyms.platform.biz.service.ResidentsArchiveService; |
| 6 | 6 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
| 7 | -import com.lyms.platform.common.enums.LczdycEnums; | |
| 8 | -import com.lyms.platform.common.enums.TbsflbgjgEnums; | |
| 9 | -import com.lyms.platform.common.enums.YnEnums; | |
| 10 | -import com.lyms.platform.common.enums.ZhzdycxEnums; | |
| 7 | +import com.lyms.platform.common.enums.*; | |
| 11 | 8 | import com.lyms.platform.common.result.BaseListResponse; |
| 12 | 9 | import com.lyms.platform.common.result.BaseResponse; |
| 13 | 10 | import com.lyms.platform.common.result.RespBuilder; |
| ... | ... | @@ -184,6 +181,22 @@ |
| 184 | 181 | public BaseResponse init() { |
| 185 | 182 | |
| 186 | 183 | List<Map<String, Object>> fklcjczd = EnumUtil.toJson(LczdycEnums.class); /** 妇科检查临床诊断异常项 */ |
| 184 | + List<Map<String, Object>> tBSflbz = EnumUtil.toJson(TbsflbgjgEnums.class); /** TBS分类报告结果 */ | |
| 185 | + List<Map<String, Object>> lstZD = EnumUtil.toJson(ZhzdycxEnums.class); /** 最后诊断异常项 */ | |
| 186 | + | |
| 187 | + return RespBuilder.buildSuccess("fklcjczd", fklcjczd, | |
| 188 | + "tBSflbz", tBSflbz, | |
| 189 | + "lstZD", lstZD); | |
| 190 | + } | |
| 191 | + /** | |
| 192 | + * 宫颈癌管理列表增加搜索条件(隆化需求) | |
| 193 | + * | |
| 194 | + * @Author: shiy | |
| 195 | + * @Date: 2021/10/11 16:13 | |
| 196 | + */ | |
| 197 | + public BaseResponse init2() { | |
| 198 | + | |
| 199 | + List<Map<String, Object>> fklcjczd = EnumUtil.toJson(LczdycEnums2.class); /** 妇科检查临床诊断异常项 */ | |
| 187 | 200 | List<Map<String, Object>> tBSflbz = EnumUtil.toJson(TbsflbgjgEnums.class); /** TBS分类报告结果 */ |
| 188 | 201 | List<Map<String, Object>> lstZD = EnumUtil.toJson(ZhzdycxEnums.class); /** 最后诊断异常项 */ |
| 189 | 202 |