123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- package com.yihu.wlyy.entity.consult;
- import java.util.Date;
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.Table;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import com.yihu.wlyy.entity.IdEntity;
- /**
- * 三师咨询
- * @author George
- *
- */
- @Entity
- @Table(name = "wlyy_consult_team")
- public class ConsultTeam extends IdEntity {
- /**
- *
- */
- private static final long serialVersionUID = -7644448339473861513L;
- // 咨询标识
- private String consult;
- // 医生标识
- private String doctor;
- // 三师团队标识
- private String team;
- //三师咨询,2家庭医生咨询 3.名医咨询
- private Integer type;
- // 提问者标识
- private String patient;
- // 患者姓名
- private String name;
- // 患者性别
- private Integer sex;
- // 患者生日
- private Date birthday;
- // 患者头像
- private String photo;
- // 发病日期
- private String when;
- // 主要症状
- private String symptoms;
- // 咨询状态(0进行中,1已完成,-1患者取消)
- private Integer status;
- // 咨询图片URL,多图以逗号分隔
- private String images;
- // 咨询语音URL
- private String voice;
- // 用户评价标识
- private String comment;
- // 用户评价内容
- private String commentContent;
- // 用户评价星级
- private Integer commentStar;
- // 医生未读数量
- private Integer doctorRead;
- // 患者未读数量
- private Integer patientRead;
- // 咨询时间
- private Date czrq;
- // 作废标识,1正常,0作废
- private String del;
- public String getConsult() {
- return consult;
- }
- public void setConsult(String consult) {
- this.consult = consult;
- }
- public ConsultTeam() {
- }
- public String getDoctor() {
- return doctor;
- }
- public void setDoctor(String doctor) {
- this.doctor = doctor;
- }
- public String getTeam() {
- return team;
- }
- public void setTeam(String team) {
- this.team = team;
- }
- public Integer getType() {
- return type;
- }
- public void setType(Integer type) {
- this.type = type;
- }
- public String getPatient() {
- return patient;
- }
- public void setPatient(String patient) {
- this.patient = patient;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+08:00")
- public Date getBirthday() {
- return birthday;
- }
- public void setBirthday(Date birthday) {
- this.birthday = birthday;
- }
- public String getPhoto() {
- return photo;
- }
- public void setPhoto(String photo) {
- this.photo = photo;
- }
- @Column(name = "fbsj")
- public String getWhen() {
- return when;
- }
- public void setWhen(String when) {
- this.when = when;
- }
- public Integer getStatus() {
- return status;
- }
- public void setStatus(Integer status) {
- this.status = status;
- }
- public String getImages() {
- return images;
- }
- public void setImages(String images) {
- this.images = images;
- }
- public String getVoice() {
- return voice;
- }
- public void setVoice(String voice) {
- this.voice = voice;
- }
- public String getComment() {
- return comment;
- }
- public void setComment(String comment) {
- this.comment = comment;
- }
- @Column(name = "comment_content")
- public String getCommentContent() {
- return commentContent;
- }
- public void setCommentContent(String commentContent) {
- this.commentContent = commentContent;
- }
- @Column(name = "comment_star")
- public Integer getCommentStar() {
- return commentStar;
- }
- public void setCommentStar(Integer commentStar) {
- this.commentStar = commentStar;
- }
- @Column(name = "doctor_read")
- public Integer getDoctorRead() {
- return doctorRead;
- }
- public void setDoctorRead(Integer doctorRead) {
- this.doctorRead = doctorRead;
- }
- @Column(name = "patient_read")
- public Integer getPatientRead() {
- return patientRead;
- }
- public void setPatientRead(Integer patientRead) {
- this.patientRead = patientRead;
- }
- // 设定JSON序列化时的日期格式
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
- public Date getCzrq() {
- return czrq;
- }
- public void setCzrq(Date czrq) {
- this.czrq = czrq;
- }
- public String getSymptoms() {
- return symptoms;
- }
- public void setSymptoms(String symptoms) {
- this.symptoms = symptoms;
- }
- public String getDel() {
- return del;
- }
- public void setDel(String del) {
- this.del = del;
- }
- public Integer getSex() {
- return sex;
- }
- public void setSex(Integer sex) {
- this.sex = sex;
- }
- }
|