Commit 02f8a927d851435609fb85a84b9fbd50069c6ca2
1 parent
6330c793b8
Exists in
master
and in
1 other branch
3
Showing 1 changed file with 129 additions and 96 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/BabyResult.java
View file @
02f8a92
... | ... | @@ -4,93 +4,126 @@ |
4 | 4 | import com.lyms.platform.common.utils.DateUtil; |
5 | 5 | import com.lyms.platform.pojo.BabyModel; |
6 | 6 | |
7 | - | |
8 | 7 | /** |
8 | + * 添加类的一句话简单描述。 | |
9 | + * <p> | |
10 | + * 详细描述 | |
11 | + * <p> | |
12 | + * 示例代码 | |
9 | 13 | * |
10 | - * 新生儿返回对象 | |
14 | + * <pre> | |
15 | + * </pre> | |
11 | 16 | * |
12 | - * @author Administrator | |
13 | - * | |
17 | + * @author In_Home | |
18 | + * @version BME V100R001 2016-3-21 | |
19 | + * @since BME V100R001C40B104 | |
14 | 20 | */ |
15 | 21 | public class BabyResult { |
16 | 22 | private String id; |
23 | + | |
17 | 24 | private String parentId; |
25 | + | |
18 | 26 | private String name; |
27 | + | |
19 | 28 | private String sex; |
29 | + | |
20 | 30 | private String birth; |
31 | + | |
21 | 32 | private String motherName; |
33 | + | |
22 | 34 | private String motherPhone; |
35 | + | |
23 | 36 | private String address; |
37 | + | |
24 | 38 | private String community; |
25 | - | |
39 | + | |
26 | 40 | private String visit; |
27 | - | |
41 | + | |
28 | 42 | public String getVisit() { |
29 | 43 | return visit; |
30 | 44 | } |
45 | + | |
31 | 46 | public void setVisit(String visit) { |
32 | 47 | this.visit = visit; |
33 | 48 | } |
49 | + | |
34 | 50 | public String getName() { |
35 | 51 | return name; |
36 | 52 | } |
53 | + | |
37 | 54 | public void setName(String name) { |
38 | 55 | this.name = name; |
39 | 56 | } |
57 | + | |
40 | 58 | public String getSex() { |
41 | 59 | return sex; |
42 | 60 | } |
61 | + | |
43 | 62 | public void setSex(String sex) { |
44 | 63 | this.sex = sex; |
45 | 64 | } |
65 | + | |
46 | 66 | public String getBirth() { |
47 | 67 | return birth; |
48 | 68 | } |
69 | + | |
49 | 70 | public void setBirth(String birth) { |
50 | 71 | this.birth = birth; |
51 | 72 | } |
73 | + | |
52 | 74 | public String getMotherName() { |
53 | 75 | return motherName; |
54 | 76 | } |
77 | + | |
55 | 78 | public void setMotherName(String motherName) { |
56 | 79 | this.motherName = motherName; |
57 | 80 | } |
81 | + | |
58 | 82 | public String getMotherPhone() { |
59 | 83 | return motherPhone; |
60 | 84 | } |
85 | + | |
61 | 86 | public void setMotherPhone(String motherPhone) { |
62 | 87 | this.motherPhone = motherPhone; |
63 | 88 | } |
89 | + | |
64 | 90 | public String getAddress() { |
65 | 91 | return address; |
66 | 92 | } |
93 | + | |
67 | 94 | public void setAddress(String address) { |
68 | 95 | this.address = address; |
69 | 96 | } |
97 | + | |
70 | 98 | public String getCommunity() { |
71 | 99 | return community; |
72 | 100 | } |
101 | + | |
73 | 102 | public void setCommunity(String community) { |
74 | 103 | this.community = community; |
75 | 104 | } |
105 | + | |
76 | 106 | public String getId() { |
77 | 107 | return id; |
78 | 108 | } |
109 | + | |
79 | 110 | public void setId(String id) { |
80 | 111 | this.id = id; |
81 | 112 | } |
113 | + | |
82 | 114 | public String getParentId() { |
83 | 115 | return parentId; |
84 | 116 | } |
117 | + | |
85 | 118 | public void setParentId(String parentId) { |
86 | 119 | this.parentId = parentId; |
87 | 120 | } |
88 | - | |
89 | - public BabyResult convertToResult(BabyModel baby){ | |
121 | + | |
122 | + public BabyResult convertToResult(BabyModel baby) { | |
90 | 123 | setBirth(DateUtil.getyyyy_MM_dd(baby.getBirth())); |
91 | 124 | setId(baby.getId()); |
92 | 125 | setName(baby.getName()); |
93 | - setVisit(baby.getVisitstatus()==-1?"未访视":"已访视"); | |
126 | + setVisit(baby.getVisitstatus() == -1 ? "未访视" : "已访视"); | |
94 | 127 | setSex(SexTypeEnums.getTitleById(baby.getSex())); |
95 | 128 | return this; |
96 | 129 | } |