ConsultTeam.java 4.3 KB

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