ConsultTeam.java 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. package com.yihu.wlyy.entity.consult;
  2. import java.util.Date;
  3. import javax.persistence.Column;
  4. import javax.persistence.Entity;
  5. import javax.persistence.Table;
  6. import com.fasterxml.jackson.annotation.JsonFormat;
  7. import com.yihu.wlyy.entity.IdEntity;
  8. /**
  9. * 三师咨询
  10. * @author George
  11. */
  12. @Entity
  13. @Table(name = "wlyy_consult_team")
  14. public class ConsultTeam extends IdEntity {
  15. private static final long serialVersionUID = -7644448339473861513L;
  16. private String consult; // 咨询标识
  17. private String doctor; // 医生标识
  18. private String team; // 三师团队标识
  19. private Integer type; // 1、三师咨询,2、家庭医生咨询,6、名医咨询
  20. private String patient; // 提问者标识
  21. private String name; // 患者姓名
  22. private Integer sex; // 患者性别
  23. private Date birthday; // 患者生日
  24. private String photo; // 患者头像
  25. private String when; // 发病日期
  26. private String symptoms; // 主要症状
  27. private Integer status; // 咨询状态(0进行中,1已完成,-1患者取消,-2超时未响应自动关闭)
  28. private String images; // 咨询图片URL,多图以逗号分隔
  29. private String voice; // 咨询语音URL
  30. private String comment; // 用户评价标识
  31. private String commentContent; // 用户评价内容
  32. private Integer commentStar; // 用户评价星级
  33. private Integer doctorRead; // 医生未读数量
  34. private Integer patientRead; // 患者未读数量
  35. private Date czrq; // 咨询时间
  36. private String del; // 作废标识,1正常,0作废
  37. private Long adminTeamId;//行政团队ID
  38. @Column(name = "admin_team_code")
  39. public Long getAdminTeamId() {
  40. return adminTeamId;
  41. }
  42. public void setAdminTeamId(Long adminTeamId) {
  43. this.adminTeamId = adminTeamId;
  44. }
  45. public String getConsult() {
  46. return consult;
  47. }
  48. public void setConsult(String consult) {
  49. this.consult = consult;
  50. }
  51. public ConsultTeam() {
  52. }
  53. public String getDoctor() {
  54. return doctor;
  55. }
  56. public void setDoctor(String doctor) {
  57. this.doctor = doctor;
  58. }
  59. public String getTeam() {
  60. return team;
  61. }
  62. public void setTeam(String team) {
  63. this.team = team;
  64. }
  65. public Integer getType() {
  66. return type;
  67. }
  68. public void setType(Integer type) {
  69. this.type = type;
  70. }
  71. public String getPatient() {
  72. return patient;
  73. }
  74. public void setPatient(String patient) {
  75. this.patient = patient;
  76. }
  77. public String getName() {
  78. return name;
  79. }
  80. public void setName(String name) {
  81. this.name = name;
  82. }
  83. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+08:00")
  84. public Date getBirthday() {
  85. return birthday;
  86. }
  87. public void setBirthday(Date birthday) {
  88. this.birthday = birthday;
  89. }
  90. public String getPhoto() {
  91. return photo;
  92. }
  93. public void setPhoto(String photo) {
  94. this.photo = photo;
  95. }
  96. @Column(name = "fbsj")
  97. public String getWhen() {
  98. return when;
  99. }
  100. public void setWhen(String when) {
  101. this.when = when;
  102. }
  103. public Integer getStatus() {
  104. return status;
  105. }
  106. public void setStatus(Integer status) {
  107. this.status = status;
  108. }
  109. public String getImages() {
  110. return images;
  111. }
  112. public void setImages(String images) {
  113. this.images = images;
  114. }
  115. public String getVoice() {
  116. return voice;
  117. }
  118. public void setVoice(String voice) {
  119. this.voice = voice;
  120. }
  121. public String getComment() {
  122. return comment;
  123. }
  124. public void setComment(String comment) {
  125. this.comment = comment;
  126. }
  127. @Column(name = "comment_content")
  128. public String getCommentContent() {
  129. return commentContent;
  130. }
  131. public void setCommentContent(String commentContent) {
  132. this.commentContent = commentContent;
  133. }
  134. @Column(name = "comment_star")
  135. public Integer getCommentStar() {
  136. return commentStar;
  137. }
  138. public void setCommentStar(Integer commentStar) {
  139. this.commentStar = commentStar;
  140. }
  141. @Column(name = "doctor_read")
  142. public Integer getDoctorRead() {
  143. return doctorRead;
  144. }
  145. public void setDoctorRead(Integer doctorRead) {
  146. this.doctorRead = doctorRead;
  147. }
  148. @Column(name = "patient_read")
  149. public Integer getPatientRead() {
  150. return patientRead;
  151. }
  152. public void setPatientRead(Integer patientRead) {
  153. this.patientRead = patientRead;
  154. }
  155. // 设定JSON序列化时的日期格式
  156. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
  157. public Date getCzrq() {
  158. return czrq;
  159. }
  160. public void setCzrq(Date czrq) {
  161. this.czrq = czrq;
  162. }
  163. public String getSymptoms() {
  164. return symptoms;
  165. }
  166. public void setSymptoms(String symptoms) {
  167. this.symptoms = symptoms;
  168. }
  169. public String getDel() {
  170. return del;
  171. }
  172. public void setDel(String del) {
  173. this.del = del;
  174. }
  175. public Integer getSex() {
  176. return sex;
  177. }
  178. public void setSex(Integer sex) {
  179. this.sex = sex;
  180. }
  181. }