SignFamily.java 13 KB

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