SignFamily.java 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. package com.yihu.wlyy.entity.patient;
  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_sign_family")
  14. public class SignFamily extends IdEntity {
  15. private static final long serialVersionUID = 364799142991631092L;
  16. private String code; // 签约标识
  17. private String lwCode; // 两网标识
  18. private Integer type; // 签约类型:1三师签约,2网络签约
  19. private String patient; // 患者标识
  20. private String openid; // 微信OPENID
  21. private String name; // 患者姓名
  22. private String idcard; // 身份证号
  23. private String ssc; // 社保卡号
  24. private String mobile; // 手机号
  25. private String emerMobile; // 紧急联系人手机号
  26. private String hospital; // 签约医院标识
  27. private String hospitalName; // 签约医院名称
  28. private String doctor; // 全科医生
  29. private String doctorName; // 全科医生姓名
  30. private String doctorHealth; // 健康管理师
  31. private String doctorHealthName; // 健康管理师姓名
  32. private Date begin; // 签约开始日期
  33. private Date end; // 签约结束日期
  34. private Integer status; // 签约状态(-1患者已取消,-2已拒绝,-3已解约,-4已到期,0待签约,1已签约,2患者申请取消签约
  35. private String images; // 签约图片附件URL,多图以逗号分隔
  36. private String reason; // 解约原因
  37. private Date czrq; // 操作时间
  38. private String teamCode;
  39. private Date applyDate; //签约时间
  40. private Date applyUnsignDate;//解约时间
  41. private Date patientApplyDate;//患者发起签约时间
  42. private Date patientApplyUnsignDate;//患者发起解约时间
  43. private String signType;//1 用户自己申请 2医生手工带签 3.医生发起邀请
  44. private String familyCode;//签约code
  45. private Double expenses;//签约费用
  46. private String expensesStatus;//扣费状态
  47. private String signSource;// 签约来源【1 社区签约 2 移动签约】
  48. private String signDoctorCode;//簽約人code
  49. private String signDoctorName;//簽約人銘
  50. private String signDoctorLevel;//簽約人等级
  51. private String expensesType;//补贴类型(4种类型:01无补贴,02全部贴,03补个人承担部分(20),04补统筹基金(70))
  52. private String signYear;//签约年度
  53. private String medicalInsuranceNum;//医保流水号
  54. private String agentDoctorCode;//代理簽約人code
  55. private String agentDoctorName;//代理簽約人銘
  56. private String agentDoctorLevel;//代理簽約人等级
  57. public String getCode() {
  58. return code;
  59. }
  60. public void setCode(String code) {
  61. this.code = code;
  62. }
  63. public String getLwCode() {
  64. return lwCode;
  65. }
  66. public void setLwCode(String lwCode) {
  67. this.lwCode = lwCode;
  68. }
  69. public Integer getType() {
  70. return type;
  71. }
  72. public void setType(Integer type) {
  73. this.type = type;
  74. }
  75. public String getPatient() {
  76. return patient;
  77. }
  78. public void setPatient(String patient) {
  79. this.patient = patient;
  80. }
  81. public String getOpenid() {
  82. return openid;
  83. }
  84. public void setOpenid(String openid) {
  85. this.openid = openid;
  86. }
  87. public String getName() {
  88. return name;
  89. }
  90. public void setName(String name) {
  91. this.name = name;
  92. }
  93. public String getIdcard() {
  94. return idcard;
  95. }
  96. public void setIdcard(String idcard) {
  97. this.idcard = idcard;
  98. }
  99. public String getSsc() {
  100. return ssc;
  101. }
  102. public void setSsc(String ssc) {
  103. this.ssc = ssc;
  104. }
  105. public String getMobile() {
  106. return mobile;
  107. }
  108. public void setMobile(String mobile) {
  109. this.mobile = mobile;
  110. }
  111. @Column(name = "emer_mobile")
  112. public String getEmerMobile() {
  113. return emerMobile;
  114. }
  115. public void setEmerMobile(String emerMobile) {
  116. this.emerMobile = emerMobile;
  117. }
  118. public String getHospital() {
  119. return hospital;
  120. }
  121. public void setHospital(String hospital) {
  122. this.hospital = hospital;
  123. }
  124. @Column(name = "hospital_name")
  125. public String getHospitalName() {
  126. return hospitalName;
  127. }
  128. public void setHospitalName(String hospitalName) {
  129. this.hospitalName = hospitalName;
  130. }
  131. public String getDoctor() {
  132. return doctor;
  133. }
  134. public void setDoctor(String doctor) {
  135. this.doctor = doctor;
  136. }
  137. @Column(name = "doctor_name")
  138. public String getDoctorName() {
  139. return doctorName;
  140. }
  141. public void setDoctorName(String doctorName) {
  142. this.doctorName = doctorName;
  143. }
  144. @Column(name = "doctor_health")
  145. public String getDoctorHealth() {
  146. return doctorHealth;
  147. }
  148. public void setDoctorHealth(String doctorHealth) {
  149. this.doctorHealth = doctorHealth;
  150. }
  151. @Column(name = "doctor_health_name")
  152. public String getDoctorHealthName() {
  153. return doctorHealthName;
  154. }
  155. public void setDoctorHealthName(String doctorHealthName) {
  156. this.doctorHealthName = doctorHealthName;
  157. }
  158. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+08:00")
  159. public Date getBegin() {
  160. return begin;
  161. }
  162. public void setBegin(Date begin) {
  163. this.begin = begin;
  164. }
  165. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+08:00")
  166. public Date getEnd() {
  167. return end;
  168. }
  169. public void setEnd(Date end) {
  170. this.end = end;
  171. }
  172. public Integer getStatus() {
  173. return status;
  174. }
  175. public void setStatus(Integer status) {
  176. this.status = status;
  177. }
  178. public String getImages() {
  179. return images;
  180. }
  181. public void setImages(String images) {
  182. this.images = images;
  183. }
  184. public String getReason() {
  185. return reason;
  186. }
  187. public void setReason(String reason) {
  188. this.reason = reason;
  189. }
  190. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
  191. public Date getCzrq() {
  192. return czrq;
  193. }
  194. public void setCzrq(Date czrq) {
  195. this.czrq = czrq;
  196. }
  197. @Column(name = "team_code")
  198. public String getTeamCode() {
  199. return teamCode;
  200. }
  201. public void setTeamCode(String teamCode) {
  202. this.teamCode = teamCode;
  203. }
  204. @Column(name = "sign_type")
  205. public String getSignType() {
  206. return signType;
  207. }
  208. public void setSignType(String signType) {
  209. this.signType = signType;
  210. }
  211. @Column(name = "apply_date")
  212. public Date getApplyDate() {
  213. return applyDate;
  214. }
  215. public void setApplyDate(Date applyDate) {
  216. this.applyDate = applyDate;
  217. }
  218. @Column(name = "patient_apply_date")
  219. public Date getPatientApplyDate() {
  220. return patientApplyDate;
  221. }
  222. public void setPatientApplyDate(Date patientApplyDate) {
  223. this.patientApplyDate = patientApplyDate;
  224. }
  225. @Column(name = "patient_apply_unsgin_date")
  226. public Date getPatientApplyUnsignDate() {
  227. return patientApplyUnsignDate;
  228. }
  229. public void setPatientApplyUnsignDate(Date patientApplyUnsignDate) {
  230. this.patientApplyUnsignDate = patientApplyUnsignDate;
  231. }
  232. @Column(name = "family_code")
  233. public String getFamilyCode() {
  234. return familyCode;
  235. }
  236. public void setFamilyCode(String familyCode) {
  237. this.familyCode = familyCode;
  238. }
  239. @Column(name = "expenses")
  240. public Double getExpenses() {
  241. return expenses;
  242. }
  243. public void setExpenses(Double expenses) {
  244. this.expenses = expenses;
  245. }
  246. @Column(name = "sign_doctor_code")
  247. public String getSignDoctorCode() {
  248. return signDoctorCode;
  249. }
  250. public void setSignDoctorCode(String signDoctorCode) {
  251. this.signDoctorCode = signDoctorCode;
  252. }
  253. @Column(name = "sign_doctor_name")
  254. public String getSignDoctorName() {
  255. return signDoctorName;
  256. }
  257. public void setSignDoctorName(String signDoctorName) {
  258. this.signDoctorName = signDoctorName;
  259. }
  260. @Column(name = "sign_doctor_level")
  261. public String getSignDoctorLevel() {
  262. return signDoctorLevel;
  263. }
  264. public void setSignDoctorLevel(String signDoctorLevel) {
  265. this.signDoctorLevel = signDoctorLevel;
  266. }
  267. @Column(name = "apply_unsign_date")
  268. public Date getApplyUnsignDate() {
  269. return applyUnsignDate;
  270. }
  271. public void setApplyUnsignDate(Date applyUnsignDate) {
  272. this.applyUnsignDate = applyUnsignDate;
  273. }
  274. @Column(name = "expenses_type")
  275. public String getExpensesType() {
  276. return expensesType;
  277. }
  278. public void setExpensesType(String expensesType) {
  279. this.expensesType = expensesType;
  280. }
  281. @Column(name = "sign_year")
  282. public String getSignYear() {
  283. return signYear;
  284. }
  285. public void setSignYear(String signYear) {
  286. this.signYear = signYear;
  287. }
  288. @Column(name = "medical_insurance_num")
  289. public String getMedicalInsuranceNum() {
  290. return medicalInsuranceNum;
  291. }
  292. public void setMedicalInsuranceNum(String medicalInsuranceNum) {
  293. this.medicalInsuranceNum = medicalInsuranceNum;
  294. }
  295. @Column(name = "agent_doctor_code")
  296. public String getAgentDoctorCode() {
  297. return agentDoctorCode;
  298. }
  299. public void setAgentDoctorCode(String agentDoctorCode) {
  300. this.agentDoctorCode = agentDoctorCode;
  301. }
  302. @Column(name = "agent_doctor_name")
  303. public String getAgentDoctorName() {
  304. return agentDoctorName;
  305. }
  306. public void setAgentDoctorName(String agentDoctorName) {
  307. this.agentDoctorName = agentDoctorName;
  308. }
  309. @Column(name = "agent_doctor_level")
  310. public String getAgentDoctorLevel() {
  311. return agentDoctorLevel;
  312. }
  313. public void setAgentDoctorLevel(String agentDoctorLevel) {
  314. this.agentDoctorLevel = agentDoctorLevel;
  315. }
  316. @Column(name = "expenses_status")
  317. public String getExpensesStatus() {
  318. return expensesStatus;
  319. }
  320. public void setExpensesStatus(String expensesStatus) {
  321. this.expensesStatus = expensesStatus;
  322. }
  323. @Column(name = "sign_source")
  324. public String getSignSource() {
  325. return signSource;
  326. }
  327. public void setSignSource(String signSource) {
  328. this.signSource = signSource;
  329. }
  330. @Override
  331. public String toString() {
  332. return "SignFamily{" +
  333. "code='" + code + '\'' +
  334. ", lwCode='" + lwCode + '\'' +
  335. ", type=" + type +
  336. ", patient='" + patient + '\'' +
  337. ", openid='" + openid + '\'' +
  338. ", name='" + name + '\'' +
  339. ", idcard='" + idcard + '\'' +
  340. ", ssc='" + ssc + '\'' +
  341. ", mobile='" + mobile + '\'' +
  342. ", emerMobile='" + emerMobile + '\'' +
  343. ", hospital='" + hospital + '\'' +
  344. ", hospitalName='" + hospitalName + '\'' +
  345. ", doctor='" + doctor + '\'' +
  346. ", doctorName='" + doctorName + '\'' +
  347. ", doctorHealth='" + doctorHealth + '\'' +
  348. ", doctorHealthName='" + doctorHealthName + '\'' +
  349. ", begin=" + begin +
  350. ", end=" + end +
  351. ", status=" + status +
  352. ", images='" + images + '\'' +
  353. ", reason='" + reason + '\'' +
  354. ", czrq=" + czrq +
  355. ", teamCode='" + teamCode + '\'' +
  356. ", applyDate=" + applyDate +
  357. ", signType='" + signType + '\'' +
  358. ", familyCode='" + familyCode + '\'' +
  359. '}';
  360. }
  361. }