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