SignFamily.java 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  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 expensesStatusName;
  50. private String signSource;// 签约来源【1 社区签约 2 移动签约】
  51. private String signDoctorCode;//簽約人code
  52. private String signDoctorName;//簽約人銘
  53. private String signDoctorLevel;//簽約人等级
  54. private String expensesType;//补贴类型(4种类型:01无补贴,02全部贴,03补个人承担部分(20),04补统筹基金(70))
  55. private String signYear;//签约年度
  56. private String medicalInsuranceNum;//医保流水号
  57. private String agentDoctorCode;//代理簽約人code
  58. private String agentDoctorName;//代理簽約人銘
  59. private String agentDoctorLevel;//代理簽約人等级
  60. private Long adminTeamId;//行政团队ID
  61. private Date expensesTime;//缴费时间
  62. //1.3.3.2新增字段
  63. //基卫服务类型
  64. private String serverType;
  65. //基卫服务类型名称
  66. private String serverTypeName;
  67. //基卫特殊人群类别
  68. private String specialPopulation;
  69. //基卫特殊人群类别名称
  70. private String specialPopulationName;
  71. //续签标志 1 医生续签 2 医生改签续签
  72. private String renewFlag;
  73. //转签原因
  74. private String renewChangeReason;
  75. //1.3.5新增居委会字段
  76. // 居委会字段id
  77. private String sickVillage;
  78. // 居委会字段名称
  79. private String sickVillageName;
  80. private Integer signPaySource;//签约支付渠道: 1线下 2线上
  81. //不对应字段
  82. private String adminTeamName;//行政团队名
  83. private String leaderCode;//行政团团队长code
  84. private String leaderName;//行政团团队长姓名
  85. private String Msg;
  86. private String patientAddress;//签约居民地址
  87. private String releaseSpeak;//解约说明
  88. public String getCode() {
  89. return code;
  90. }
  91. public void setCode(String code) {
  92. this.code = code;
  93. }
  94. public String getLwCode() {
  95. return lwCode;
  96. }
  97. public void setLwCode(String lwCode) {
  98. this.lwCode = lwCode;
  99. }
  100. public Integer getType() {
  101. return type;
  102. }
  103. public void setType(Integer type) {
  104. this.type = type;
  105. }
  106. public String getPatient() {
  107. return patient;
  108. }
  109. public void setPatient(String patient) {
  110. this.patient = patient;
  111. }
  112. public String getOpenid() {
  113. return openid;
  114. }
  115. public void setOpenid(String openid) {
  116. this.openid = openid;
  117. }
  118. public String getName() {
  119. return name;
  120. }
  121. public void setName(String name) {
  122. this.name = name;
  123. }
  124. public String getIdcard() {
  125. return idcard;
  126. }
  127. public void setIdcard(String idcard) {
  128. this.idcard = idcard;
  129. }
  130. public String getSsc() {
  131. return ssc;
  132. }
  133. public void setSsc(String ssc) {
  134. this.ssc = ssc;
  135. }
  136. public String getMobile() {
  137. return mobile;
  138. }
  139. public void setMobile(String mobile) {
  140. this.mobile = mobile;
  141. }
  142. @Column(name = "emer_mobile")
  143. public String getEmerMobile() {
  144. return emerMobile;
  145. }
  146. public void setEmerMobile(String emerMobile) {
  147. this.emerMobile = emerMobile;
  148. }
  149. public String getHospital() {
  150. return hospital;
  151. }
  152. public void setHospital(String hospital) {
  153. this.hospital = hospital;
  154. }
  155. @Column(name = "hospital_name")
  156. public String getHospitalName() {
  157. return hospitalName;
  158. }
  159. public void setHospitalName(String hospitalName) {
  160. this.hospitalName = hospitalName;
  161. }
  162. public String getDoctor() {
  163. return doctor;
  164. }
  165. public void setDoctor(String doctor) {
  166. this.doctor = doctor;
  167. }
  168. @Column(name = "doctor_name")
  169. public String getDoctorName() {
  170. return doctorName;
  171. }
  172. public void setDoctorName(String doctorName) {
  173. this.doctorName = doctorName;
  174. }
  175. @Column(name = "doctor_health")
  176. public String getDoctorHealth() {
  177. return doctorHealth;
  178. }
  179. public void setDoctorHealth(String doctorHealth) {
  180. this.doctorHealth = doctorHealth;
  181. }
  182. @Column(name = "doctor_health_name")
  183. public String getDoctorHealthName() {
  184. return doctorHealthName;
  185. }
  186. public void setDoctorHealthName(String doctorHealthName) {
  187. this.doctorHealthName = doctorHealthName;
  188. }
  189. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+08:00")
  190. public Date getBegin() {
  191. return begin;
  192. }
  193. public void setBegin(Date begin) {
  194. this.begin = begin;
  195. }
  196. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+08:00")
  197. public Date getEnd() {
  198. return end;
  199. }
  200. public void setEnd(Date end) {
  201. this.end = end;
  202. }
  203. public Integer getStatus() {
  204. return status;
  205. }
  206. public void setStatus(Integer status) {
  207. this.status = status;
  208. }
  209. public String getImages() {
  210. return images;
  211. }
  212. public void setImages(String images) {
  213. this.images = images;
  214. }
  215. public String getReason() {
  216. return reason;
  217. }
  218. public void setReason(String reason) {
  219. this.reason = reason;
  220. }
  221. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
  222. public Date getCzrq() {
  223. return czrq;
  224. }
  225. public void setCzrq(Date czrq) {
  226. this.czrq = czrq;
  227. }
  228. @Column(name = "team_code")
  229. public String getTeamCode() {
  230. return teamCode;
  231. }
  232. public void setTeamCode(String teamCode) {
  233. this.teamCode = teamCode;
  234. }
  235. @Column(name = "sign_type")
  236. public String getSignType() {
  237. return signType;
  238. }
  239. public void setSignType(String signType) {
  240. this.signType = signType;
  241. }
  242. @Column(name = "apply_date")
  243. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
  244. public Date getApplyDate() {
  245. return applyDate;
  246. }
  247. public void setApplyDate(Date applyDate) {
  248. this.applyDate = applyDate;
  249. }
  250. @Column(name = "patient_apply_date")
  251. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
  252. public Date getPatientApplyDate() {
  253. return patientApplyDate;
  254. }
  255. public void setPatientApplyDate(Date patientApplyDate) {
  256. this.patientApplyDate = patientApplyDate;
  257. }
  258. @Column(name = "patient_apply_unsgin_date")
  259. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
  260. public Date getPatientApplyUnsignDate() {
  261. return patientApplyUnsignDate;
  262. }
  263. public void setPatientApplyUnsignDate(Date patientApplyUnsignDate) {
  264. this.patientApplyUnsignDate = patientApplyUnsignDate;
  265. }
  266. @Column(name = "family_code")
  267. public String getFamilyCode() {
  268. return familyCode;
  269. }
  270. public void setFamilyCode(String familyCode) {
  271. this.familyCode = familyCode;
  272. }
  273. @Column(name = "expenses")
  274. public Double getExpenses() {
  275. return expenses;
  276. }
  277. public void setExpenses(Double expenses) {
  278. this.expenses = expenses;
  279. }
  280. @Column(name = "sign_doctor_code")
  281. public String getSignDoctorCode() {
  282. return signDoctorCode;
  283. }
  284. public void setSignDoctorCode(String signDoctorCode) {
  285. this.signDoctorCode = signDoctorCode;
  286. }
  287. @Column(name = "sign_doctor_name")
  288. public String getSignDoctorName() {
  289. return signDoctorName;
  290. }
  291. public void setSignDoctorName(String signDoctorName) {
  292. this.signDoctorName = signDoctorName;
  293. }
  294. @Column(name = "sign_doctor_level")
  295. public String getSignDoctorLevel() {
  296. return signDoctorLevel;
  297. }
  298. public void setSignDoctorLevel(String signDoctorLevel) {
  299. this.signDoctorLevel = signDoctorLevel;
  300. }
  301. @Column(name = "apply_unsign_date")
  302. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
  303. public Date getApplyUnsignDate() {
  304. return applyUnsignDate;
  305. }
  306. public void setApplyUnsignDate(Date applyUnsignDate) {
  307. this.applyUnsignDate = applyUnsignDate;
  308. }
  309. @Column(name = "expenses_type")
  310. public String getExpensesType() {
  311. return expensesType;
  312. }
  313. public void setExpensesType(String expensesType) {
  314. this.expensesType = expensesType;
  315. }
  316. @Column(name = "sign_year")
  317. public String getSignYear() {
  318. return signYear;
  319. }
  320. public void setSignYear(String signYear) {
  321. this.signYear = signYear;
  322. }
  323. @Column(name = "medical_insurance_num")
  324. public String getMedicalInsuranceNum() {
  325. return medicalInsuranceNum;
  326. }
  327. public void setMedicalInsuranceNum(String medicalInsuranceNum) {
  328. this.medicalInsuranceNum = medicalInsuranceNum;
  329. }
  330. @Column(name = "agent_doctor_code")
  331. public String getAgentDoctorCode() {
  332. return agentDoctorCode;
  333. }
  334. public void setAgentDoctorCode(String agentDoctorCode) {
  335. this.agentDoctorCode = agentDoctorCode;
  336. }
  337. @Column(name = "agent_doctor_name")
  338. public String getAgentDoctorName() {
  339. return agentDoctorName;
  340. }
  341. public void setAgentDoctorName(String agentDoctorName) {
  342. this.agentDoctorName = agentDoctorName;
  343. }
  344. @Column(name = "agent_doctor_level")
  345. public String getAgentDoctorLevel() {
  346. return agentDoctorLevel;
  347. }
  348. public void setAgentDoctorLevel(String agentDoctorLevel) {
  349. this.agentDoctorLevel = agentDoctorLevel;
  350. }
  351. @Column(name = "expenses_status")
  352. public String getExpensesStatus() {
  353. return expensesStatus;
  354. }
  355. public void setExpensesStatus(String expensesStatus) {
  356. this.expensesStatus = expensesStatus;
  357. }
  358. @Column(name = "sign_source")
  359. public String getSignSource() {
  360. return signSource;
  361. }
  362. public void setSignSource(String signSource) {
  363. this.signSource = signSource;
  364. }
  365. @Column(name = "admin_team_code")
  366. public Long getAdminTeamId() {
  367. return adminTeamId;
  368. }
  369. public void setAdminTeamId(Long adminTeamId) {
  370. this.adminTeamId = adminTeamId;
  371. }
  372. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
  373. public Date getExpensesTime() {
  374. return expensesTime;
  375. }
  376. public void setExpensesTime(Date expensesTime) {
  377. this.expensesTime = expensesTime;
  378. }
  379. @Transient
  380. public String getAdminTeamName() {
  381. return adminTeamName;
  382. }
  383. public void setAdminTeamName(String adminTeamName) {
  384. this.adminTeamName = adminTeamName;
  385. }
  386. @Transient
  387. public String getLeaderCode() {
  388. return leaderCode;
  389. }
  390. public void setLeaderCode(String leaderCode) {
  391. this.leaderCode = leaderCode;
  392. }
  393. @Transient
  394. public String getLeaderName() {
  395. return leaderName;
  396. }
  397. public void setLeaderName(String leaderName) {
  398. this.leaderName = leaderName;
  399. }
  400. @Transient
  401. public String getMsg() {
  402. return Msg;
  403. }
  404. public void setMsg(String msg) {
  405. Msg = msg;
  406. }
  407. @Transient
  408. public String getPatientAddress() {
  409. return patientAddress;
  410. }
  411. public void setPatientAddress(String patientAddress) {
  412. this.patientAddress = patientAddress;
  413. }
  414. @Column(name = "release_speak")
  415. public String getReleaseSpeak() {
  416. return releaseSpeak;
  417. }
  418. public void setReleaseSpeak(String releaseSpeak) {
  419. this.releaseSpeak = releaseSpeak;
  420. }
  421. @Transient
  422. public String getStatusName() {
  423. return statusName;
  424. }
  425. public void setStatusName(String statusName) {
  426. this.statusName = statusName;
  427. }
  428. @Transient
  429. public String getExpensesStatusName() { //扣费状态【0未扣费 1已扣费 2已退费】
  430. if("2".equals(expensesStatus)){
  431. this.expensesStatusName = "已退费";
  432. }else if("1".equals(expensesStatus)){
  433. this.expensesStatusName = "已扣费";
  434. }else if("0".equals(expensesStatus)){
  435. this.expensesStatusName = "未扣费";
  436. }else{
  437. this.expensesStatusName = "";
  438. }
  439. return expensesStatusName;
  440. }
  441. public void setExpensesStatusName(String expensesStatusName) {
  442. this.expensesStatusName = expensesStatusName;
  443. }
  444. public String getServerType() {
  445. return serverType;
  446. }
  447. public void setServerType(String serverType) {
  448. this.serverType = serverType;
  449. }
  450. public String getServerTypeName() {
  451. return serverTypeName;
  452. }
  453. public void setServerTypeName(String serverTypeName) {
  454. this.serverTypeName = serverTypeName;
  455. }
  456. public String getSpecialPopulation() {
  457. return specialPopulation;
  458. }
  459. public void setSpecialPopulation(String specialPopulation) {
  460. this.specialPopulation = specialPopulation;
  461. }
  462. public String getSpecialPopulationName() {
  463. return specialPopulationName;
  464. }
  465. public void setSpecialPopulationName(String specialPopulationName) {
  466. this.specialPopulationName = specialPopulationName;
  467. }
  468. public String getRenewFlag() {
  469. return renewFlag;
  470. }
  471. public void setRenewFlag(String renewFlag) {
  472. this.renewFlag = renewFlag;
  473. }
  474. public String getRenewChangeReason() {
  475. return renewChangeReason;
  476. }
  477. public void setRenewChangeReason(String renewChangeReason) {
  478. this.renewChangeReason = renewChangeReason;
  479. }
  480. public String getSickVillage() {
  481. return sickVillage;
  482. }
  483. public void setSickVillage(String sickVillage) {
  484. this.sickVillage = sickVillage;
  485. }
  486. public String getSickVillageName() {
  487. return sickVillageName;
  488. }
  489. public void setSickVillageName(String sickVillageName) {
  490. this.sickVillageName = sickVillageName;
  491. }
  492. public Integer getSignPaySource() {
  493. return signPaySource;
  494. }
  495. public void setSignPaySource(Integer signPaySource) {
  496. this.signPaySource = signPaySource;
  497. }
  498. }