ConsultMoVi.java 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. package com.yihu.wlyy.entity.consult;
  2. import java.sql.Time;
  3. import java.util.Date;
  4. import javax.persistence.CascadeType;
  5. import javax.persistence.Column;
  6. import javax.persistence.Entity;
  7. import javax.persistence.FetchType;
  8. import javax.persistence.JoinColumn;
  9. import javax.persistence.ManyToOne;
  10. import javax.persistence.Table;
  11. import com.fasterxml.jackson.annotation.JsonFormat;
  12. import com.yihu.wlyy.entity.doctor.profile.DoctorComment;
  13. import com.yihu.wlyy.entity.IdEntity;
  14. /**
  15. * 电话视频咨询信息對象
  16. * @author George
  17. *
  18. */
  19. @Entity
  20. @Table(name = "wlyy_consult_movi")
  21. public class ConsultMoVi extends IdEntity {
  22. /**
  23. *
  24. */
  25. private static final long serialVersionUID = -8996800633072164852L;
  26. // 咨询标识
  27. private String consult;
  28. // 医生标识
  29. private String doctor;
  30. // 医生姓名
  31. private String doctorName;
  32. // 三师团队
  33. private String team;
  34. // 三师团队名称
  35. private String teamName;
  36. // 预约类型:1指定医生,2三师预约
  37. private Integer target;
  38. // 患者标识
  39. private String patient;
  40. // 家人标识
  41. private String family;
  42. // 患者姓名
  43. private String name;
  44. // 患者性别
  45. private Integer sex;
  46. // 患者生日
  47. private Date birthday;
  48. // 患者头像
  49. private String photo;
  50. // 预约内容说明
  51. private String content;
  52. // 咨询类型,1电话咨询,2视频咨询
  53. private Integer type;
  54. // 排班标识
  55. private String scheduling;
  56. // 预约日期
  57. private Date appoDate;
  58. // 预约星期
  59. private Integer appoWeek;
  60. // 预约开始时间
  61. private Time hourBegin;
  62. // 预约结束时间
  63. private Time hourEnd;
  64. // 图片URL,多图逗号分隔
  65. private String images;
  66. // 咨询状态:0待医生同意,-1医生拒绝,1医生同意,2咨询完成
  67. private Integer status;
  68. // 评价标识,为空说明未评价
  69. private DoctorComment comment;
  70. // 咨询时间
  71. private Date czrq;
  72. // 作废标识,1正常,0作废
  73. private String del;
  74. public String getConsult() {
  75. return consult;
  76. }
  77. public void setConsult(String consult) {
  78. this.consult = consult;
  79. }
  80. public String getDoctor() {
  81. return doctor;
  82. }
  83. public void setDoctor(String doctor) {
  84. this.doctor = doctor;
  85. }
  86. @Column(name = "doctor_name")
  87. public String getDoctorName() {
  88. return doctorName;
  89. }
  90. public void setDoctorName(String doctorName) {
  91. this.doctorName = doctorName;
  92. }
  93. public String getTeam() {
  94. return team;
  95. }
  96. public void setTeam(String team) {
  97. this.team = team;
  98. }
  99. @Column(name = "team_name")
  100. public String getTeamName() {
  101. return teamName;
  102. }
  103. public void setTeamName(String teamName) {
  104. this.teamName = teamName;
  105. }
  106. public Integer getTarget() {
  107. return target;
  108. }
  109. public void setTarget(Integer target) {
  110. this.target = target;
  111. }
  112. public String getPatient() {
  113. return patient;
  114. }
  115. public void setPatient(String patient) {
  116. this.patient = patient;
  117. }
  118. public String getFamily() {
  119. return family;
  120. }
  121. public void setFamily(String family) {
  122. this.family = family;
  123. }
  124. public String getName() {
  125. return name;
  126. }
  127. public void setName(String name) {
  128. this.name = name;
  129. }
  130. public Integer getSex() {
  131. return sex;
  132. }
  133. public void setSex(Integer sex) {
  134. this.sex = sex;
  135. }
  136. public Date getBirthday() {
  137. return birthday;
  138. }
  139. public void setBirthday(Date birthday) {
  140. this.birthday = birthday;
  141. }
  142. public String getPhoto() {
  143. return photo;
  144. }
  145. public void setPhoto(String photo) {
  146. this.photo = photo;
  147. }
  148. public String getContent() {
  149. return content;
  150. }
  151. public void setContent(String content) {
  152. this.content = content;
  153. }
  154. public Integer getType() {
  155. return type;
  156. }
  157. public void setType(Integer type) {
  158. this.type = type;
  159. }
  160. public String getScheduling() {
  161. return scheduling;
  162. }
  163. public void setScheduling(String scheduling) {
  164. this.scheduling = scheduling;
  165. }
  166. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
  167. public Date getAppoDate() {
  168. return appoDate;
  169. }
  170. public void setAppoDate(Date appoDate) {
  171. this.appoDate = appoDate;
  172. }
  173. public Integer getAppoWeek() {
  174. return appoWeek;
  175. }
  176. public void setAppoWeek(Integer appoWeek) {
  177. this.appoWeek = appoWeek;
  178. }
  179. @Column(name = "hour_begin")
  180. public Time getHourBegin() {
  181. return hourBegin;
  182. }
  183. public void setHourBegin(Time hourBegin) {
  184. this.hourBegin = hourBegin;
  185. }
  186. @Column(name = "hour_end")
  187. public Time getHourEnd() {
  188. return hourEnd;
  189. }
  190. public void setHourEnd(Time hourEnd) {
  191. this.hourEnd = hourEnd;
  192. }
  193. public String getImages() {
  194. return images;
  195. }
  196. public void setImages(String images) {
  197. this.images = images;
  198. }
  199. public Integer getStatus() {
  200. return status;
  201. }
  202. public void setStatus(Integer status) {
  203. this.status = status;
  204. }
  205. @ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY, targetEntity = DoctorComment.class, optional = true)
  206. @JoinColumn(name = "comment", referencedColumnName = "code", insertable = true)
  207. public DoctorComment getComment() {
  208. return comment;
  209. }
  210. public void setComment(DoctorComment comment) {
  211. this.comment = comment;
  212. }
  213. public Date getCzrq() {
  214. return czrq;
  215. }
  216. public void setCzrq(Date czrq) {
  217. this.czrq = czrq;
  218. }
  219. public String getDel() {
  220. return del;
  221. }
  222. public void setDel(String del) {
  223. this.del = del;
  224. }
  225. }