Commit e214d9753c3bfc18edf3e9c50e367f78248a0138
1 parent
2a3d7a8d23
Exists in
master
and in
3 other branches
platform permission
add return pageinfo
Showing 3 changed files with 49 additions and 0 deletions
platform-common/src/main/java/com/lyms/platform/common/enums/PatientsTypeEnum.java
View file @
e214d97
| 1 | 1 | package com.lyms.platform.common.enums; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.common.result.IdTextModel; | |
| 4 | + | |
| 3 | 5 | /** |
| 4 | 6 | * 病人类型 |
| 5 | 7 | * Created by Zhang.Rui on 2016/4/7. |
| ... | ... | @@ -32,6 +34,20 @@ |
| 32 | 34 | |
| 33 | 35 | public void setText(String text) { |
| 34 | 36 | this.text = text; |
| 37 | + } | |
| 38 | + | |
| 39 | + public static IdTextModel getById(String id) { | |
| 40 | + IdTextModel idTextModel = new IdTextModel(); | |
| 41 | + if(null == id) return idTextModel; | |
| 42 | + | |
| 43 | + for(PatientsTypeEnum s : PatientsTypeEnum.values()) { | |
| 44 | + if(id.equals(s.getId().toString())) { | |
| 45 | + idTextModel.setText(s.getText()); | |
| 46 | + idTextModel.setId(String.valueOf(s.getId())); | |
| 47 | + return idTextModel; | |
| 48 | + } | |
| 49 | + } | |
| 50 | + return idTextModel; | |
| 35 | 51 | } |
| 36 | 52 | } |
platform-common/src/main/java/com/lyms/platform/common/enums/SampleTypeEnum.java
View file @
e214d97
| 1 | 1 | package com.lyms.platform.common.enums; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.common.result.IdTextModel; | |
| 4 | + | |
| 3 | 5 | /** |
| 4 | 6 | * 样本类型 |
| 5 | 7 | * Created by Zhang.Rui on 2016/4/7. |
| ... | ... | @@ -37,5 +39,18 @@ |
| 37 | 39 | this.text = text; |
| 38 | 40 | } |
| 39 | 41 | |
| 42 | + public static IdTextModel getById(String id) { | |
| 43 | + IdTextModel idTextModel = new IdTextModel(); | |
| 44 | + if(null == id) return idTextModel; | |
| 45 | + | |
| 46 | + for(SampleTypeEnum s : SampleTypeEnum.values()) { | |
| 47 | + if(id.equals(s.getId().toString())) { | |
| 48 | + idTextModel.setText(s.getText()); | |
| 49 | + idTextModel.setId(String.valueOf(s.getId())); | |
| 50 | + return idTextModel; | |
| 51 | + } | |
| 52 | + } | |
| 53 | + return idTextModel; | |
| 54 | + } | |
| 40 | 55 | } |
platform-dal/src/main/java/com/lyms/platform/pojo/ReferValue.java
View file @
e214d97
| ... | ... | @@ -58,6 +58,24 @@ |
| 58 | 58 | |
| 59 | 59 | private Integer yn; |
| 60 | 60 | |
| 61 | + private String sampleVal; | |
| 62 | + private String featureVal; | |
| 63 | + | |
| 64 | + public String getSampleVal() { | |
| 65 | + return sampleVal; | |
| 66 | + } | |
| 67 | + | |
| 68 | + public void setSampleVal(String sampleVal) { | |
| 69 | + this.sampleVal = sampleVal; | |
| 70 | + } | |
| 71 | + | |
| 72 | + public String getFeatureVal() { | |
| 73 | + return featureVal; | |
| 74 | + } | |
| 75 | + | |
| 76 | + public void setFeatureVal(String featureVal) { | |
| 77 | + this.featureVal = featureVal; | |
| 78 | + } | |
| 61 | 79 | |
| 62 | 80 | public String getSex() { |
| 63 | 81 | return sex; |