ConsultTeam.java 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. package com.yihu.wlyy.entity.consult;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import com.yihu.wlyy.entity.IdEntity;
  4. import javax.persistence.Column;
  5. import javax.persistence.Entity;
  6. import javax.persistence.Table;
  7. import javax.persistence.Transient;
  8. import java.util.Date;
  9. /**
  10. * 三师咨询
  11. * @author George
  12. */
  13. @Entity
  14. @Table(name = "wlyy_consult_team")
  15. public class ConsultTeam extends IdEntity {
  16. private static final long serialVersionUID = -7644448339473861513L;
  17. private String consult; // 咨询标识
  18. private String doctor; // 医生标识
  19. private String team; // 三师团队标识
  20. private Integer type; // 1、三师咨询,2、家庭医生咨询,6、患者名医咨询 7医生名医咨询 8续方咨询
  21. private String patient; // 提问者标识
  22. private String name; // 患者姓名
  23. private Integer sex; // 患者性别
  24. private Date birthday; // 患者生日
  25. private String photo; // 患者头像
  26. private String when; // 发病日期
  27. private String symptoms; // 主要症状
  28. private Integer status; // 咨询状态(0进行中,1已完成,-1患者取消,-2超时未响应自动关闭)
  29. private String images; // 咨询图片URL,多图以逗号分隔
  30. private String voice; // 咨询语音URL
  31. private String comment; // 用户评价标识
  32. private String commentContent; // 用户评价内容
  33. private Integer commentStar; // 用户评价星级
  34. private Integer doctorRead; // 医生未读数量
  35. private Integer patientRead; // 患者未读数量
  36. private Date czrq; // 咨询时间
  37. private String del; // 作废标识,1正常,0作废
  38. private Long adminTeamId;//行政团队ID
  39. private Long guidance; //关联指导
  40. private String doctorName;//醫生名字
  41. //起始消息id
  42. private String startMsgId;
  43. //结束消息id
  44. private String endMsgId;
  45. // 结束人
  46. private String endOperator;
  47. // 结束人类型
  48. private Integer endType;
  49. // 结束时间
  50. private Date endTime;
  51. //是否评价 1、已评价 0、未评价'
  52. private Integer evaluate;
  53. //评价时间
  54. private Date evaluateTime;
  55. public Integer getEvaluate() {
  56. return evaluate;
  57. }
  58. public void setEvaluate(Integer evaluate) {
  59. this.evaluate = evaluate;
  60. }
  61. public Date getEvaluateTime() {
  62. return evaluateTime;
  63. }
  64. public void setEvaluateTime(Date evaluateTime) {
  65. this.evaluateTime = evaluateTime;
  66. }
  67. @Column(name = "admin_team_code")
  68. public Long getAdminTeamId() {
  69. return adminTeamId;
  70. }
  71. public void setAdminTeamId(Long adminTeamId) {
  72. this.adminTeamId = adminTeamId;
  73. }
  74. public String getConsult() {
  75. return consult;
  76. }
  77. public void setConsult(String consult) {
  78. this.consult = consult;
  79. }
  80. public ConsultTeam() {
  81. }
  82. public String getDoctor() {
  83. return doctor;
  84. }
  85. public void setDoctor(String doctor) {
  86. this.doctor = doctor;
  87. }
  88. public String getTeam() {
  89. return team;
  90. }
  91. public void setTeam(String team) {
  92. this.team = team;
  93. }
  94. public Integer getType() {
  95. return type;
  96. }
  97. public void setType(Integer type) {
  98. this.type = type;
  99. }
  100. public String getPatient() {
  101. return patient;
  102. }
  103. public void setPatient(String patient) {
  104. this.patient = patient;
  105. }
  106. public String getName() {
  107. return name;
  108. }
  109. public void setName(String name) {
  110. this.name = name;
  111. }
  112. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+08:00")
  113. public Date getBirthday() {
  114. return birthday;
  115. }
  116. public void setBirthday(Date birthday) {
  117. this.birthday = birthday;
  118. }
  119. public String getPhoto() {
  120. return photo;
  121. }
  122. public void setPhoto(String photo) {
  123. this.photo = photo;
  124. }
  125. @Column(name = "fbsj")
  126. public String getWhen() {
  127. return when;
  128. }
  129. public void setWhen(String when) {
  130. this.when = when;
  131. }
  132. public Integer getStatus() {
  133. return status;
  134. }
  135. public void setStatus(Integer status) {
  136. this.status = status;
  137. }
  138. public String getImages() {
  139. return images;
  140. }
  141. public void setImages(String images) {
  142. this.images = images;
  143. }
  144. public String getVoice() {
  145. return voice;
  146. }
  147. public void setVoice(String voice) {
  148. this.voice = voice;
  149. }
  150. public String getComment() {
  151. return comment;
  152. }
  153. public void setComment(String comment) {
  154. this.comment = comment;
  155. }
  156. @Column(name = "comment_content")
  157. public String getCommentContent() {
  158. return commentContent;
  159. }
  160. public void setCommentContent(String commentContent) {
  161. this.commentContent = commentContent;
  162. }
  163. @Column(name = "comment_star")
  164. public Integer getCommentStar() {
  165. return commentStar;
  166. }
  167. public void setCommentStar(Integer commentStar) {
  168. this.commentStar = commentStar;
  169. }
  170. @Column(name = "doctor_read")
  171. public Integer getDoctorRead() {
  172. return doctorRead;
  173. }
  174. public void setDoctorRead(Integer doctorRead) {
  175. this.doctorRead = doctorRead;
  176. }
  177. @Column(name = "patient_read")
  178. public Integer getPatientRead() {
  179. return patientRead;
  180. }
  181. public void setPatientRead(Integer patientRead) {
  182. this.patientRead = patientRead;
  183. }
  184. // 设定JSON序列化时的日期格式
  185. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
  186. public Date getCzrq() {
  187. return czrq;
  188. }
  189. public void setCzrq(Date czrq) {
  190. this.czrq = czrq;
  191. }
  192. // 设定JSON序列化时的日期格式
  193. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
  194. public Date getEndTime() {
  195. return endTime;
  196. }
  197. public void setEndTime(Date endTime) {
  198. this.endTime = endTime;
  199. }
  200. public String getSymptoms() {
  201. return symptoms;
  202. }
  203. public void setSymptoms(String symptoms) {
  204. this.symptoms = symptoms;
  205. }
  206. public String getDel() {
  207. return del;
  208. }
  209. public void setDel(String del) {
  210. this.del = del;
  211. }
  212. public Integer getSex() {
  213. return sex;
  214. }
  215. public void setSex(Integer sex) {
  216. this.sex = sex;
  217. }
  218. @Transient
  219. public String getDoctorName() {
  220. return doctorName;
  221. }
  222. public void setDoctorName(String doctorName) {
  223. this.doctorName = doctorName;
  224. }
  225. public Long getGuidance() {
  226. return guidance;
  227. }
  228. public void setGuidance(Long guidance) {
  229. this.guidance = guidance;
  230. }
  231. public String getStartMsgId() {
  232. return startMsgId;
  233. }
  234. public void setStartMsgId(String startMsgId) {
  235. this.startMsgId = startMsgId;
  236. }
  237. public String getEndMsgId() {
  238. return endMsgId;
  239. }
  240. public void setEndMsgId(String endMsgId) {
  241. this.endMsgId = endMsgId;
  242. }
  243. public String getEndOperator() {
  244. return endOperator;
  245. }
  246. public void setEndOperator(String endOperator) {
  247. this.endOperator = endOperator;
  248. }
  249. public Integer getEndType() {
  250. return endType;
  251. }
  252. public void setEndType(Integer endType) {
  253. this.endType = endType;
  254. }
  255. }