123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632 |
- package com.yihu.wlyy.entity;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.Table;
- import javax.persistence.Transient;
- import java.util.Date;
- /**
- * 家庭签约
- * @author George
- *
- */
- @Entity
- @Table(name = "wlyy_sign_family")
- public class SignFamily extends IdEntity {
- private static final long serialVersionUID = 364799142991631092L;
- private String code; // 签约标识
- private String lwCode; // 两网标识
- private Integer type; // 签约类型:1三师签约,2网络签约
- private String patient; // 患者标识
- private String openid; // 微信OPENID
- private String name; // 患者姓名
- private String idcard; // 身份证号
- private String ssc; // 社保卡号
- private String mobile; // 手机号
- private String emerMobile; // 紧急联系人手机号
- private String hospital; // 签约医院标识
- private String hospitalName; // 签约医院名称
- private String doctor; // 全科医生
- private String doctorName; // 全科医生姓名
- private String doctorHealth; // 健康管理师
- private String doctorHealthName; // 健康管理师姓名
- private Date begin; // 签约开始日期
- private Date end; // 签约结束日期
- private Integer status; // 签约状态(-1患者已取消,-2已拒绝,-3已解约,-4已到期,0待签约,1已签约,2患者申请取消签约
- private String statusName;
- private String images; // 签约图片附件URL,多图以逗号分隔
- private String reason; // 解约原因
- private Date czrq; // 操作时间
- private String teamCode;
- private Date applyDate; //签约时间
- private Date applyUnsignDate;//解约时间
- private Date patientApplyDate;//患者发起签约时间
- private Date patientApplyUnsignDate;//患者发起解约时间
- private String signType;//1 用户自己申请 2医生手工带签 3.医生发起邀请
- private String familyCode;//签约code
- private Double expenses;//签约费用
- private String expensesStatus;//扣费状态【0未扣费 1已扣费 2已退费】
- private String expensesStatusName;
- private String signSource;// 签约来源【1 社区签约 2 移动签约】
- private String signDoctorCode;//簽約人code
- private String signDoctorName;//簽約人銘
- private String signDoctorLevel;//簽約人等级
- private String expensesType;//补贴类型(4种类型:01无补贴,02全部贴,03补个人承担部分(20),04补统筹基金(70))
- private String signYear;//签约年度
- private String medicalInsuranceNum;//医保流水号
- private String agentDoctorCode;//代理簽約人code
- private String agentDoctorName;//代理簽約人銘
- private String agentDoctorLevel;//代理簽約人等级
- private Long adminTeamId;//行政团队ID
- private Date expensesTime;//缴费时间
- //1.3.3.2新增字段
- //基卫服务类型
- private String serverType;
- //基卫服务类型名称
- private String serverTypeName;
- //基卫特殊人群类别
- private String specialPopulation;
- //基卫特殊人群类别名称
- private String specialPopulationName;
- //续签标志 1 医生续签 2 医生改签续签
- private String renewFlag;
- //转签原因
- private String renewChangeReason;
- //1.3.5新增居委会字段
- // 居委会字段id
- private String sickVillage;
- // 居委会字段名称
- private String sickVillageName;
- private Integer signPaySource;//签约支付渠道: 1线下 2线上
- //不对应字段
- private String adminTeamName;//行政团队名
- private String leaderCode;//行政团团队长code
- private String leaderName;//行政团团队长姓名
- private String Msg;
- private String patientAddress;//签约居民地址
- private String releaseSpeak;//解约说明
- public String getCode() {
- return code;
- }
- public void setCode(String code) {
- this.code = code;
- }
- public String getLwCode() {
- return lwCode;
- }
- public void setLwCode(String lwCode) {
- this.lwCode = lwCode;
- }
- public Integer getType() {
- return type;
- }
- public void setType(Integer type) {
- this.type = type;
- }
- public String getPatient() {
- return patient;
- }
- public void setPatient(String patient) {
- this.patient = patient;
- }
- public String getOpenid() {
- return openid;
- }
- public void setOpenid(String openid) {
- this.openid = openid;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getIdcard() {
- return idcard;
- }
- public void setIdcard(String idcard) {
- this.idcard = idcard;
- }
- public String getSsc() {
- return ssc;
- }
- public void setSsc(String ssc) {
- this.ssc = ssc;
- }
- public String getMobile() {
- return mobile;
- }
- public void setMobile(String mobile) {
- this.mobile = mobile;
- }
- @Column(name = "emer_mobile")
- public String getEmerMobile() {
- return emerMobile;
- }
- public void setEmerMobile(String emerMobile) {
- this.emerMobile = emerMobile;
- }
- public String getHospital() {
- return hospital;
- }
- public void setHospital(String hospital) {
- this.hospital = hospital;
- }
- @Column(name = "hospital_name")
- public String getHospitalName() {
- return hospitalName;
- }
- public void setHospitalName(String hospitalName) {
- this.hospitalName = hospitalName;
- }
- public String getDoctor() {
- return doctor;
- }
- public void setDoctor(String doctor) {
- this.doctor = doctor;
- }
- @Column(name = "doctor_name")
- public String getDoctorName() {
- return doctorName;
- }
- public void setDoctorName(String doctorName) {
- this.doctorName = doctorName;
- }
- @Column(name = "doctor_health")
- public String getDoctorHealth() {
- return doctorHealth;
- }
- public void setDoctorHealth(String doctorHealth) {
- this.doctorHealth = doctorHealth;
- }
- @Column(name = "doctor_health_name")
- public String getDoctorHealthName() {
- return doctorHealthName;
- }
- public void setDoctorHealthName(String doctorHealthName) {
- this.doctorHealthName = doctorHealthName;
- }
- @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+08:00")
- public Date getBegin() {
- return begin;
- }
- public void setBegin(Date begin) {
- this.begin = begin;
- }
- @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+08:00")
- public Date getEnd() {
- return end;
- }
- public void setEnd(Date end) {
- this.end = end;
- }
- public Integer getStatus() {
- return status;
- }
- public void setStatus(Integer status) {
- this.status = status;
- }
- public String getImages() {
- return images;
- }
- public void setImages(String images) {
- this.images = images;
- }
- public String getReason() {
- return reason;
- }
- public void setReason(String reason) {
- this.reason = reason;
- }
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
- public Date getCzrq() {
- return czrq;
- }
- public void setCzrq(Date czrq) {
- this.czrq = czrq;
- }
- @Column(name = "team_code")
- public String getTeamCode() {
- return teamCode;
- }
- public void setTeamCode(String teamCode) {
- this.teamCode = teamCode;
- }
- @Column(name = "sign_type")
- public String getSignType() {
- return signType;
- }
- public void setSignType(String signType) {
- this.signType = signType;
- }
- @Column(name = "apply_date")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
- public Date getApplyDate() {
- return applyDate;
- }
- public void setApplyDate(Date applyDate) {
- this.applyDate = applyDate;
- }
- @Column(name = "patient_apply_date")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
- public Date getPatientApplyDate() {
- return patientApplyDate;
- }
- public void setPatientApplyDate(Date patientApplyDate) {
- this.patientApplyDate = patientApplyDate;
- }
- @Column(name = "patient_apply_unsgin_date")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
- public Date getPatientApplyUnsignDate() {
- return patientApplyUnsignDate;
- }
- public void setPatientApplyUnsignDate(Date patientApplyUnsignDate) {
- this.patientApplyUnsignDate = patientApplyUnsignDate;
- }
- @Column(name = "family_code")
- public String getFamilyCode() {
- return familyCode;
- }
- public void setFamilyCode(String familyCode) {
- this.familyCode = familyCode;
- }
- @Column(name = "expenses")
- public Double getExpenses() {
- return expenses;
- }
- public void setExpenses(Double expenses) {
- this.expenses = expenses;
- }
- @Column(name = "sign_doctor_code")
- public String getSignDoctorCode() {
- return signDoctorCode;
- }
- public void setSignDoctorCode(String signDoctorCode) {
- this.signDoctorCode = signDoctorCode;
- }
- @Column(name = "sign_doctor_name")
- public String getSignDoctorName() {
- return signDoctorName;
- }
- public void setSignDoctorName(String signDoctorName) {
- this.signDoctorName = signDoctorName;
- }
- @Column(name = "sign_doctor_level")
- public String getSignDoctorLevel() {
- return signDoctorLevel;
- }
- public void setSignDoctorLevel(String signDoctorLevel) {
- this.signDoctorLevel = signDoctorLevel;
- }
- @Column(name = "apply_unsign_date")
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
- public Date getApplyUnsignDate() {
- return applyUnsignDate;
- }
- public void setApplyUnsignDate(Date applyUnsignDate) {
- this.applyUnsignDate = applyUnsignDate;
- }
- @Column(name = "expenses_type")
- public String getExpensesType() {
- return expensesType;
- }
- public void setExpensesType(String expensesType) {
- this.expensesType = expensesType;
- }
- @Column(name = "sign_year")
- public String getSignYear() {
- return signYear;
- }
- public void setSignYear(String signYear) {
- this.signYear = signYear;
- }
- @Column(name = "medical_insurance_num")
- public String getMedicalInsuranceNum() {
- return medicalInsuranceNum;
- }
- public void setMedicalInsuranceNum(String medicalInsuranceNum) {
- this.medicalInsuranceNum = medicalInsuranceNum;
- }
- @Column(name = "agent_doctor_code")
- public String getAgentDoctorCode() {
- return agentDoctorCode;
- }
- public void setAgentDoctorCode(String agentDoctorCode) {
- this.agentDoctorCode = agentDoctorCode;
- }
- @Column(name = "agent_doctor_name")
- public String getAgentDoctorName() {
- return agentDoctorName;
- }
- public void setAgentDoctorName(String agentDoctorName) {
- this.agentDoctorName = agentDoctorName;
- }
- @Column(name = "agent_doctor_level")
- public String getAgentDoctorLevel() {
- return agentDoctorLevel;
- }
- public void setAgentDoctorLevel(String agentDoctorLevel) {
- this.agentDoctorLevel = agentDoctorLevel;
- }
- @Column(name = "expenses_status")
- public String getExpensesStatus() {
- return expensesStatus;
- }
- public void setExpensesStatus(String expensesStatus) {
- this.expensesStatus = expensesStatus;
- }
- @Column(name = "sign_source")
- public String getSignSource() {
- return signSource;
- }
- public void setSignSource(String signSource) {
- this.signSource = signSource;
- }
- @Column(name = "admin_team_code")
- public Long getAdminTeamId() {
- return adminTeamId;
- }
- public void setAdminTeamId(Long adminTeamId) {
- this.adminTeamId = adminTeamId;
- }
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
- public Date getExpensesTime() {
- return expensesTime;
- }
- public void setExpensesTime(Date expensesTime) {
- this.expensesTime = expensesTime;
- }
- @Transient
- public String getAdminTeamName() {
- return adminTeamName;
- }
- public void setAdminTeamName(String adminTeamName) {
- this.adminTeamName = adminTeamName;
- }
- @Transient
- public String getLeaderCode() {
- return leaderCode;
- }
- public void setLeaderCode(String leaderCode) {
- this.leaderCode = leaderCode;
- }
- @Transient
- public String getLeaderName() {
- return leaderName;
- }
- public void setLeaderName(String leaderName) {
- this.leaderName = leaderName;
- }
- @Transient
- public String getMsg() {
- return Msg;
- }
- public void setMsg(String msg) {
- Msg = msg;
- }
- @Transient
- public String getPatientAddress() {
- return patientAddress;
- }
- public void setPatientAddress(String patientAddress) {
- this.patientAddress = patientAddress;
- }
- @Column(name = "release_speak")
- public String getReleaseSpeak() {
- return releaseSpeak;
- }
- public void setReleaseSpeak(String releaseSpeak) {
- this.releaseSpeak = releaseSpeak;
- }
- @Transient
- public String getStatusName() {
- return statusName;
- }
- public void setStatusName(String statusName) {
- this.statusName = statusName;
- }
- @Transient
- public String getExpensesStatusName() { //扣费状态【0未扣费 1已扣费 2已退费】
- if("2".equals(expensesStatus)){
- this.expensesStatusName = "已退费";
- }else if("1".equals(expensesStatus)){
- this.expensesStatusName = "已扣费";
- }else if("0".equals(expensesStatus)){
- this.expensesStatusName = "未扣费";
- }else{
- this.expensesStatusName = "";
- }
- return expensesStatusName;
- }
- public void setExpensesStatusName(String expensesStatusName) {
- this.expensesStatusName = expensesStatusName;
- }
- public String getServerType() {
- return serverType;
- }
- public void setServerType(String serverType) {
- this.serverType = serverType;
- }
- public String getServerTypeName() {
- return serverTypeName;
- }
- public void setServerTypeName(String serverTypeName) {
- this.serverTypeName = serverTypeName;
- }
- public String getSpecialPopulation() {
- return specialPopulation;
- }
- public void setSpecialPopulation(String specialPopulation) {
- this.specialPopulation = specialPopulation;
- }
- public String getSpecialPopulationName() {
- return specialPopulationName;
- }
- public void setSpecialPopulationName(String specialPopulationName) {
- this.specialPopulationName = specialPopulationName;
- }
- public String getRenewFlag() {
- return renewFlag;
- }
- public void setRenewFlag(String renewFlag) {
- this.renewFlag = renewFlag;
- }
- public String getRenewChangeReason() {
- return renewChangeReason;
- }
- public void setRenewChangeReason(String renewChangeReason) {
- this.renewChangeReason = renewChangeReason;
- }
- public String getSickVillage() {
- return sickVillage;
- }
- public void setSickVillage(String sickVillage) {
- this.sickVillage = sickVillage;
- }
- public String getSickVillageName() {
- return sickVillageName;
- }
- public void setSickVillageName(String sickVillageName) {
- this.sickVillageName = sickVillageName;
- }
- public Integer getSignPaySource() {
- return signPaySource;
- }
- public void setSignPaySource(Integer signPaySource) {
- this.signPaySource = signPaySource;
- }
- }
|