Commit 0766cb531cc24dc65185a10d98ae0de022a82c34
1 parent
ecf6f224d6
Exists in
master
and in
1 other branch
孕妇分娩后 变成产妇
Showing 3 changed files with 43 additions and 6 deletions
platform-common/src/main/java/com/lyms/platform/common/enums/RenShenJieJu1Enums.java
View file @
0766cb5
1 | +package com.lyms.platform.common.enums; | |
2 | + | |
3 | +/** | |
4 | + * Created by Administrator on 2016/6/24 0024. | |
5 | + */ | |
6 | +public enum RenShenJieJu1Enums { | |
7 | + O("继续妊娠", 0),O1("终止妊娠", 1); | |
8 | + | |
9 | + private RenShenJieJu1Enums(String name, Integer id) { | |
10 | + this.name = name; | |
11 | + this.id = id; | |
12 | + } | |
13 | + | |
14 | + private String name; | |
15 | + private Integer id; | |
16 | + | |
17 | + public Integer getId() { | |
18 | + return id; | |
19 | + } | |
20 | + | |
21 | + public void setId(Integer id) { | |
22 | + this.id = id; | |
23 | + } | |
24 | + | |
25 | + public String getName() { | |
26 | + return name; | |
27 | + } | |
28 | + | |
29 | + public void setName(String name) { | |
30 | + this.name = name; | |
31 | + } | |
32 | + public static String getTitle(Integer id){ | |
33 | + for(RenShenJieJu1Enums enums:values()){ | |
34 | + if(id==enums.getId()){ | |
35 | + return enums.getName(); | |
36 | + } | |
37 | + } | |
38 | + return null; | |
39 | + } | |
40 | +} |
platform-common/src/main/java/com/lyms/platform/common/enums/SieveEnums.java
View file @
0766cb5
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/SieveController.java
View file @
0766cb5
... | ... | @@ -4,10 +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.ChanQResultEnums; | |
8 | -import com.lyms.platform.common.enums.FuZhongEnums; | |
9 | -import com.lyms.platform.common.enums.RenShenJieJuEnums; | |
10 | -import com.lyms.platform.common.enums.SieveEnums; | |
7 | +import com.lyms.platform.common.enums.*; | |
11 | 8 | import com.lyms.platform.common.result.BaseObjectResponse; |
12 | 9 | import com.lyms.platform.common.result.BaseResponse; |
13 | 10 | import com.lyms.platform.operate.web.facade.SieveFacade; |
... | ... | @@ -148,7 +145,7 @@ |
148 | 145 | //妊娠结局 |
149 | 146 | public List<Object> getRenShenJieJuEnums() { |
150 | 147 | List<Object> list = new ArrayList<>(); |
151 | - for (RenShenJieJuEnums enums : RenShenJieJuEnums.values()) { | |
148 | + for (RenShenJieJu1Enums enums : RenShenJieJu1Enums.values()) { | |
152 | 149 | Map<String, Object> resultMap = new HashMap<>(); |
153 | 150 | resultMap.put("id", enums.getId()); |
154 | 151 | resultMap.put("name", enums.getName()); |