ConsultTeam.java 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  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. private String relationCode;//关联业务表的code
  56. public Integer getEvaluate() {
  57. return evaluate;
  58. }
  59. public void setEvaluate(Integer evaluate) {
  60. this.evaluate = evaluate;
  61. }
  62. public Date getEvaluateTime() {
  63. return evaluateTime;
  64. }
  65. public void setEvaluateTime(Date evaluateTime) {
  66. this.evaluateTime = evaluateTime;
  67. }
  68. @Column(name = "admin_team_code")
  69. public Long getAdminTeamId() {
  70. return adminTeamId;
  71. }
  72. public void setAdminTeamId(Long adminTeamId) {
  73. this.adminTeamId = adminTeamId;
  74. }
  75. public String getConsult() {
  76. return consult;
  77. }
  78. public void setConsult(String consult) {
  79. this.consult = consult;
  80. }
  81. public ConsultTeam() {
  82. }
  83. public String getDoctor() {
  84. return doctor;
  85. }
  86. public void setDoctor(String doctor) {
  87. this.doctor = doctor;
  88. }
  89. public String getTeam() {
  90. return team;
  91. }
  92. public void setTeam(String team) {
  93. this.team = team;
  94. }
  95. public Integer getType() {
  96. return type;
  97. }
  98. public void setType(Integer type) {
  99. this.type = type;
  100. }
  101. public String getPatient() {
  102. return patient;
  103. }
  104. public void setPatient(String patient) {
  105. this.patient = patient;
  106. }
  107. public String getName() {
  108. return name;
  109. }
  110. public void setName(String name) {
  111. this.name = name;
  112. }
  113. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+08:00")
  114. public Date getBirthday() {
  115. return birthday;
  116. }
  117. public void setBirthday(Date birthday) {
  118. this.birthday = birthday;
  119. }
  120. public String getPhoto() {
  121. return photo;
  122. }
  123. public void setPhoto(String photo) {
  124. this.photo = photo;
  125. }
  126. @Column(name = "fbsj")
  127. public String getWhen() {
  128. return when;
  129. }
  130. public void setWhen(String when) {
  131. this.when = when;
  132. }
  133. public Integer getStatus() {
  134. return status;
  135. }
  136. public void setStatus(Integer status) {
  137. this.status = status;
  138. }
  139. public String getImages() {
  140. return images;
  141. }
  142. public void setImages(String images) {
  143. this.images = images;
  144. }
  145. public String getVoice() {
  146. return voice;
  147. }
  148. public void setVoice(String voice) {
  149. this.voice = voice;
  150. }
  151. public String getComment() {
  152. return comment;
  153. }
  154. public void setComment(String comment) {
  155. this.comment = comment;
  156. }
  157. @Column(name = "comment_content")
  158. public String getCommentContent() {
  159. return commentContent;
  160. }
  161. public void setCommentContent(String commentContent) {
  162. this.commentContent = commentContent;
  163. }
  164. @Column(name = "comment_star")
  165. public Integer getCommentStar() {
  166. return commentStar;
  167. }
  168. public void setCommentStar(Integer commentStar) {
  169. this.commentStar = commentStar;
  170. }
  171. @Column(name = "doctor_read")
  172. public Integer getDoctorRead() {
  173. return doctorRead;
  174. }
  175. public void setDoctorRead(Integer doctorRead) {
  176. this.doctorRead = doctorRead;
  177. }
  178. @Column(name = "patient_read")
  179. public Integer getPatientRead() {
  180. return patientRead;
  181. }
  182. public void setPatientRead(Integer patientRead) {
  183. this.patientRead = patientRead;
  184. }
  185. // 设定JSON序列化时的日期格式
  186. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
  187. public Date getCzrq() {
  188. return czrq;
  189. }
  190. public void setCzrq(Date czrq) {
  191. this.czrq = czrq;
  192. }
  193. // 设定JSON序列化时的日期格式
  194. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
  195. public Date getEndTime() {
  196. return endTime;
  197. }
  198. public void setEndTime(Date endTime) {
  199. this.endTime = endTime;
  200. }
  201. public String getSymptoms() {
  202. return symptoms;
  203. }
  204. public void setSymptoms(String symptoms) {
  205. this.symptoms = symptoms;
  206. }
  207. public String getDel() {
  208. return del;
  209. }
  210. public void setDel(String del) {
  211. this.del = del;
  212. }
  213. public Integer getSex() {
  214. return sex;
  215. }
  216. public void setSex(Integer sex) {
  217. this.sex = sex;
  218. }
  219. @Transient
  220. public String getDoctorName() {
  221. return doctorName;
  222. }
  223. public void setDoctorName(String doctorName) {
  224. this.doctorName = doctorName;
  225. }
  226. public Long getGuidance() {
  227. return guidance;
  228. }
  229. public void setGuidance(Long guidance) {
  230. this.guidance = guidance;
  231. }
  232. public String getStartMsgId() {
  233. return startMsgId;
  234. }
  235. public void setStartMsgId(String startMsgId) {
  236. this.startMsgId = startMsgId;
  237. }
  238. public String getEndMsgId() {
  239. return endMsgId;
  240. }
  241. public void setEndMsgId(String endMsgId) {
  242. this.endMsgId = endMsgId;
  243. }
  244. public String getEndOperator() {
  245. return endOperator;
  246. }
  247. public void setEndOperator(String endOperator) {
  248. this.endOperator = endOperator;
  249. }
  250. public Integer getEndType() {
  251. return endType;
  252. }
  253. public void setEndType(Integer endType) {
  254. this.endType = endType;
  255. }
  256. public String getRelationCode() {
  257. return relationCode;
  258. }
  259. public void setRelationCode(String relationCode) {
  260. this.relationCode = relationCode;
  261. }
  262. }