diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/BabyResult.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/BabyResult.java index 58774f2..918acaf 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/BabyResult.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/BabyResult.java @@ -1,97 +1,130 @@ -package com.lyms.platform.operate.web.result; - -import com.lyms.platform.common.enums.SexTypeEnums; -import com.lyms.platform.common.utils.DateUtil; -import com.lyms.platform.pojo.BabyModel; - - -/** - * - * 新生儿返回对象 - * - * @author Administrator - * - */ -public class BabyResult { - private String id; - private String parentId; - private String name; - private String sex; - private String birth; - private String motherName; - private String motherPhone; - private String address; - private String community; - - private String visit; - - public String getVisit() { - return visit; - } - public void setVisit(String visit) { - this.visit = visit; - } - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - public String getSex() { - return sex; - } - public void setSex(String sex) { - this.sex = sex; - } - public String getBirth() { - return birth; - } - public void setBirth(String birth) { - this.birth = birth; - } - public String getMotherName() { - return motherName; - } - public void setMotherName(String motherName) { - this.motherName = motherName; - } - public String getMotherPhone() { - return motherPhone; - } - public void setMotherPhone(String motherPhone) { - this.motherPhone = motherPhone; - } - public String getAddress() { - return address; - } - public void setAddress(String address) { - this.address = address; - } - public String getCommunity() { - return community; - } - public void setCommunity(String community) { - this.community = community; - } - public String getId() { - return id; - } - public void setId(String id) { - this.id = id; - } - public String getParentId() { - return parentId; - } - public void setParentId(String parentId) { - this.parentId = parentId; - } - - public BabyResult convertToResult(BabyModel baby){ - setBirth(DateUtil.getyyyy_MM_dd(baby.getBirth())); - setId(baby.getId()); - setName(baby.getName()); - setVisit(baby.getVisitstatus()==-1?"未访视":"已访视"); - setSex(SexTypeEnums.getTitleById(baby.getSex())); - return this; - } +package com.lyms.platform.operate.web.result; + +import com.lyms.platform.common.enums.SexTypeEnums; +import com.lyms.platform.common.utils.DateUtil; +import com.lyms.platform.pojo.BabyModel; + +/** + * 添加类的一句话简单描述。 + *

+ * 详细描述 + *

+ * 示例代码 + * + *

+ * 
+ * + * @author In_Home + * @version BME V100R001 2016-3-21 + * @since BME V100R001C40B104 + */ +public class BabyResult { + private String id; + + private String parentId; + + private String name; + + private String sex; + + private String birth; + + private String motherName; + + private String motherPhone; + + private String address; + + private String community; + + private String visit; + + public String getVisit() { + return visit; + } + + public void setVisit(String visit) { + this.visit = visit; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public String getBirth() { + return birth; + } + + public void setBirth(String birth) { + this.birth = birth; + } + + public String getMotherName() { + return motherName; + } + + public void setMotherName(String motherName) { + this.motherName = motherName; + } + + public String getMotherPhone() { + return motherPhone; + } + + public void setMotherPhone(String motherPhone) { + this.motherPhone = motherPhone; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public String getCommunity() { + return community; + } + + public void setCommunity(String community) { + this.community = community; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getParentId() { + return parentId; + } + + public void setParentId(String parentId) { + this.parentId = parentId; + } + + public BabyResult convertToResult(BabyModel baby) { + setBirth(DateUtil.getyyyy_MM_dd(baby.getBirth())); + setId(baby.getId()); + setName(baby.getName()); + setVisit(baby.getVisitstatus() == -1 ? "未访视" : "已访视"); + setSex(SexTypeEnums.getTitleById(baby.getSex())); + return this; + } } \ No newline at end of file