Commit 04ae4377bcad1bc14483e582d98f5e5f112fe8f9
1 parent
0754295c0e
Exists in
master
and in
6 other branches
随访列表初始化数据
Showing 5 changed files with 217 additions and 5 deletions
- platform-common/src/main/java/com/lyms/platform/common/enums/IsCloseEnums.java
- platform-common/src/main/java/com/lyms/platform/common/enums/SourceEnums.java
- platform-common/src/main/java/com/lyms/platform/common/enums/TreatmentEnums.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/EarController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/InitFollowUpListData.java
platform-common/src/main/java/com/lyms/platform/common/enums/IsCloseEnums.java
View file @
04ae437
| 1 | +package com.lyms.platform.common.enums; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * @auther yangfei | |
| 5 | + * @createTime 2017年07月13日 10时42分 | |
| 6 | + * @discription | |
| 7 | + */ | |
| 8 | +public enum IsCloseEnums { | |
| 9 | + ISJA(1, "结案"), | |
| 10 | + ISWJA(2, "未结案"); | |
| 11 | + | |
| 12 | + private int id; | |
| 13 | + private String name; | |
| 14 | + | |
| 15 | + public static String getTitle(int id){ | |
| 16 | + if (id==0){ | |
| 17 | + return ""; | |
| 18 | + } | |
| 19 | + for (IsCloseEnums cfEnums:IsCloseEnums.values()){ | |
| 20 | + if (id == cfEnums.getId()){ | |
| 21 | + return cfEnums.getName(); | |
| 22 | + } | |
| 23 | + } | |
| 24 | + return ""; | |
| 25 | + } | |
| 26 | + | |
| 27 | + IsCloseEnums(int id, String name) { | |
| 28 | + this.id = id; | |
| 29 | + this.name = name; | |
| 30 | + } | |
| 31 | + | |
| 32 | + public int getId() { | |
| 33 | + return id; | |
| 34 | + } | |
| 35 | + | |
| 36 | + public void setId(int id) { | |
| 37 | + this.id = id; | |
| 38 | + } | |
| 39 | + | |
| 40 | + public String getName() { | |
| 41 | + return name; | |
| 42 | + } | |
| 43 | + | |
| 44 | + public void setName(String name) { | |
| 45 | + this.name = name; | |
| 46 | + } | |
| 47 | +} |
platform-common/src/main/java/com/lyms/platform/common/enums/SourceEnums.java
View file @
04ae437
| 1 | +package com.lyms.platform.common.enums; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * @auther yangfei | |
| 5 | + * @createTime 2017年07月13日 10时46分 | |
| 6 | + * @discription | |
| 7 | + */ | |
| 8 | +public enum SourceEnums { | |
| 9 | + ISJA(1, "本院"), | |
| 10 | + ISWJA(2, "*医院"); | |
| 11 | + private int id; | |
| 12 | + private String name; | |
| 13 | + | |
| 14 | + public static String getTitle(int id){ | |
| 15 | + if (id==0){ | |
| 16 | + return ""; | |
| 17 | + } | |
| 18 | + for (SourceEnums cfEnums:SourceEnums.values()){ | |
| 19 | + if (id == cfEnums.getId()){ | |
| 20 | + return cfEnums.getName(); | |
| 21 | + } | |
| 22 | + } | |
| 23 | + return ""; | |
| 24 | + } | |
| 25 | + | |
| 26 | + SourceEnums(int id, String name) { | |
| 27 | + this.id = id; | |
| 28 | + this.name = name; | |
| 29 | + } | |
| 30 | + | |
| 31 | + public int getId() { | |
| 32 | + return id; | |
| 33 | + } | |
| 34 | + | |
| 35 | + public void setId(int id) { | |
| 36 | + this.id = id; | |
| 37 | + } | |
| 38 | + | |
| 39 | + public String getName() { | |
| 40 | + return name; | |
| 41 | + } | |
| 42 | + | |
| 43 | + public void setName(String name) { | |
| 44 | + this.name = name; | |
| 45 | + } | |
| 46 | +} |
platform-common/src/main/java/com/lyms/platform/common/enums/TreatmentEnums.java
View file @
04ae437
| 1 | +package com.lyms.platform.common.enums; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * @auther yangfei | |
| 5 | + * @createTime 2017年07月13日 10时49分 | |
| 6 | + * @discription | |
| 7 | + */ | |
| 8 | +public enum TreatmentEnums { | |
| 9 | + RGEW(1, "人工耳蜗"), | |
| 10 | + SHS(3, "手术"), | |
| 11 | + ZTQ(2, "助听器"); | |
| 12 | + private int id; | |
| 13 | + private String name; | |
| 14 | + | |
| 15 | + public static String getTitle(int id){ | |
| 16 | + if (id==0){ | |
| 17 | + return ""; | |
| 18 | + } | |
| 19 | + for (TreatmentEnums cfEnums:TreatmentEnums.values()){ | |
| 20 | + if (id == cfEnums.getId()){ | |
| 21 | + return cfEnums.getName(); | |
| 22 | + } | |
| 23 | + } | |
| 24 | + return ""; | |
| 25 | + } | |
| 26 | + | |
| 27 | + TreatmentEnums(int id, String name) { | |
| 28 | + this.id = id; | |
| 29 | + this.name = name; | |
| 30 | + } | |
| 31 | + | |
| 32 | + public int getId() { | |
| 33 | + return id; | |
| 34 | + } | |
| 35 | + | |
| 36 | + public void setId(int id) { | |
| 37 | + this.id = id; | |
| 38 | + } | |
| 39 | + | |
| 40 | + public String getName() { | |
| 41 | + return name; | |
| 42 | + } | |
| 43 | + | |
| 44 | + public void setName(String name) { | |
| 45 | + this.name = name; | |
| 46 | + } | |
| 47 | +} |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/EarController.java
View file @
04ae437
| ... | ... | @@ -4,9 +4,7 @@ |
| 4 | 4 | import com.lyms.platform.common.base.BaseController; |
| 5 | 5 | import com.lyms.platform.common.base.LoginContext; |
| 6 | 6 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
| 7 | -import com.lyms.platform.common.enums.ConfirmedEnums; | |
| 8 | -import com.lyms.platform.common.enums.HearingDiagnosisEnums; | |
| 9 | -import com.lyms.platform.common.enums.HighRiskEnum; | |
| 7 | +import com.lyms.platform.common.enums.*; | |
| 10 | 8 | import com.lyms.platform.common.result.BaseObjectResponse; |
| 11 | 9 | import com.lyms.platform.common.result.BaseResponse; |
| 12 | 10 | import com.lyms.platform.common.utils.DateUtil; |
| ... | ... | @@ -14,6 +12,7 @@ |
| 14 | 12 | import com.lyms.platform.common.utils.StringUtils; |
| 15 | 13 | import com.lyms.platform.operate.web.facade.AutoMatchFacade; |
| 16 | 14 | import com.lyms.platform.operate.web.result.InitFollowUp; |
| 15 | +import com.lyms.platform.operate.web.result.InitFollowUpListData; | |
| 17 | 16 | import com.lyms.platform.operate.web.result.InitHearingDiagnose; |
| 18 | 17 | import com.lyms.platform.permission.model.*; |
| 19 | 18 | import com.lyms.platform.permission.service.*; |
| 20 | 19 | |
| 21 | 20 | |
| ... | ... | @@ -199,14 +198,33 @@ |
| 199 | 198 | |
| 200 | 199 | return initHearingDiagnose.setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("查询成功"); |
| 201 | 200 | } |
| 202 | - | |
| 203 | 201 | /** |
| 202 | + * 随访模块列表管理初始化数据 | |
| 203 | + * | |
| 204 | + * @return | |
| 205 | + */ | |
| 206 | + @RequestMapping(method = RequestMethod.GET, value = "/initHighrFollowUpData") | |
| 207 | + @ResponseBody | |
| 208 | + @TokenRequired | |
| 209 | + public BaseResponse initHighrFollowUpData() { | |
| 210 | + InitFollowUpListData initFollowUpListData = new InitFollowUpListData(); | |
| 211 | + //确诊结果 | |
| 212 | + initFollowUpListData.setConfirmResult(EnumUtil.toJson(ConfirmedEnums.class)); | |
| 213 | + //是否结案 | |
| 214 | + initFollowUpListData.setIsClose(EnumUtil.toJson(IsCloseEnums.class)); | |
| 215 | + //来源 | |
| 216 | + initFollowUpListData.setSource(EnumUtil.toJson(SourceEnums.class)); | |
| 217 | + //干预治疗 | |
| 218 | + initFollowUpListData.setTreatment(EnumUtil.toJson(TreatmentEnums.class)); | |
| 219 | + return initFollowUpListData.setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("查询成功"); | |
| 220 | + } | |
| 221 | + /** | |
| 204 | 222 | * 进入新增听力转诊页面前,验证及初始化数据 |
| 205 | 223 | * |
| 206 | 224 | * @param babyId 儿童档案ID |
| 207 | 225 | * @return |
| 208 | 226 | */ |
| 209 | - @RequestMapping(method = RequestMethod.GET, value = "/initHighrChangeHosp") | |
| 227 | + @RequestMapping(method = RequestMethod.GET, value = "/nitHighrChangeHosp") | |
| 210 | 228 | @ResponseBody |
| 211 | 229 | @TokenRequired |
| 212 | 230 | public BaseResponse initHighrChangeHosp(String babyId, HttpServletRequest request) { |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/InitFollowUpListData.java
View file @
04ae437
| 1 | +package com.lyms.platform.operate.web.result; | |
| 2 | + | |
| 3 | +import com.lyms.platform.common.result.BaseResponse; | |
| 4 | + | |
| 5 | +import java.util.List; | |
| 6 | +import java.util.Map; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * @auther yangfei | |
| 10 | + * @createTime 2017年07月13日 10时38分 | |
| 11 | + * @discription | |
| 12 | + */ | |
| 13 | +public class InitFollowUpListData extends BaseResponse { | |
| 14 | + //确诊结果 | |
| 15 | + private List<Map<String, Object>> confirmResult; | |
| 16 | + //是否结案 | |
| 17 | + private List<Map<String, Object>> isClose; | |
| 18 | + //来源 | |
| 19 | + private List<Map<String, Object>> source; | |
| 20 | + //干预治疗 | |
| 21 | + private List<Map<String, Object>> treatment; | |
| 22 | + | |
| 23 | + public List<Map<String, Object>> getConfirmResult() { | |
| 24 | + return confirmResult; | |
| 25 | + } | |
| 26 | + | |
| 27 | + public void setConfirmResult(List<Map<String, Object>> confirmResult) { | |
| 28 | + this.confirmResult = confirmResult; | |
| 29 | + } | |
| 30 | + | |
| 31 | + public List<Map<String, Object>> getIsClose() { | |
| 32 | + return isClose; | |
| 33 | + } | |
| 34 | + | |
| 35 | + public void setIsClose(List<Map<String, Object>> isClose) { | |
| 36 | + this.isClose = isClose; | |
| 37 | + } | |
| 38 | + | |
| 39 | + public List<Map<String, Object>> getSource() { | |
| 40 | + return source; | |
| 41 | + } | |
| 42 | + | |
| 43 | + public void setSource(List<Map<String, Object>> source) { | |
| 44 | + this.source = source; | |
| 45 | + } | |
| 46 | + | |
| 47 | + public List<Map<String, Object>> getTreatment() { | |
| 48 | + return treatment; | |
| 49 | + } | |
| 50 | + | |
| 51 | + public void setTreatment(List<Map<String, Object>> treatment) { | |
| 52 | + this.treatment = treatment; | |
| 53 | + } | |
| 54 | +} |