123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318 |
- package com.yihu.wlyy.entity.consult;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import com.yihu.wlyy.entity.IdEntity;
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.Table;
- import javax.persistence.Transient;
- import java.util.Date;
- /**
- * 三师咨询
- * @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; // 三师团队标识
- private Integer type; // 1、三师咨询,2、家庭医生咨询,6、患者名医咨询 7医生名医咨询 8续方咨询
- private String patient; // 提问者标识
- private String name; // 患者姓名
- private Integer sex; // 患者性别
- private Date birthday; // 患者生日
- private String photo; // 患者头像
- private String when; // 发病日期
- private String symptoms; // 主要症状
- private Integer status; // 咨询状态(0进行中,1已完成,-1患者取消,-2超时未响应自动关闭)
- private String images; // 咨询图片URL,多图以逗号分隔
- private String voice; // 咨询语音URL
- private String comment; // 用户评价标识
- private String commentContent; // 用户评价内容
- private Integer commentStar; // 用户评价星级
- private Integer doctorRead; // 医生未读数量
- private Integer patientRead; // 患者未读数量
- private Date czrq; // 咨询时间
- private String del; // 作废标识,1正常,0作废
- private Long adminTeamId;//行政团队ID
- private Long guidance; //关联指导
- private String doctorName;//醫生名字
- //起始消息id
- private String startMsgId;
- //结束消息id
- private String endMsgId;
- // 结束人
- private String endOperator;
- // 结束人类型
- private Integer endType;
- // 结束时间
- private Date endTime;
- //是否评价 1、已评价 0、未评价'
- private Integer evaluate;
- //评价时间
- private Date evaluateTime;
- public Integer getEvaluate() {
- return evaluate;
- }
- public void setEvaluate(Integer evaluate) {
- this.evaluate = evaluate;
- }
- public Date getEvaluateTime() {
- return evaluateTime;
- }
- public void setEvaluateTime(Date evaluateTime) {
- this.evaluateTime = evaluateTime;
- }
- @Column(name = "admin_team_code")
- public Long getAdminTeamId() {
- return adminTeamId;
- }
- public void setAdminTeamId(Long adminTeamId) {
- this.adminTeamId = adminTeamId;
- }
- 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;
- }
- // 设定JSON序列化时的日期格式
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
- public Date getEndTime() {
- return endTime;
- }
- public void setEndTime(Date endTime) {
- this.endTime = endTime;
- }
- 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;
- }
- @Transient
- public String getDoctorName() {
- return doctorName;
- }
- public void setDoctorName(String doctorName) {
- this.doctorName = doctorName;
- }
- public Long getGuidance() {
- return guidance;
- }
- public void setGuidance(Long guidance) {
- this.guidance = guidance;
- }
- public String getStartMsgId() {
- return startMsgId;
- }
- public void setStartMsgId(String startMsgId) {
- this.startMsgId = startMsgId;
- }
- public String getEndMsgId() {
- return endMsgId;
- }
- public void setEndMsgId(String endMsgId) {
- this.endMsgId = endMsgId;
- }
- public String getEndOperator() {
- return endOperator;
- }
- public void setEndOperator(String endOperator) {
- this.endOperator = endOperator;
- }
- public Integer getEndType() {
- return endType;
- }
- public void setEndType(Integer endType) {
- this.endType = endType;
- }
- }
|