diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java index 2239989..62bb734 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -1227,6 +1227,7 @@ public class PatientController { public BaseResponse bookbuildingPatient(@RequestBody LymsPatient patient) { BaseResponse baseResponse = new BaseResponse(); try { + patient.setPpasswd(DigestUtils.md5DigestAsHex(patient.getPpasswd().getBytes())); boolean f = lymsPatientService.saveOrUpdate(patient); baseResponse.setErrorcode(f?0:1); baseResponse.setErrormsg(f?"注册成功!":"注册失败!"); diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPatient.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPatient.java index 30edd83..861c576 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPatient.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsPatient.java @@ -125,17 +125,17 @@ public class LymsPatient implements Serializable { * 婚姻状况 */ @TableField(value = "marriage_type") - private String marriage_type; + private String marriageType; /** * 户籍类型 */ @TableField(value = "register_type") - private String register_type; + private String registerType; /** * 居住类型 */ @TableField(value = "reside_type") - private String reside_type; + private String resideType; /** * 文化程度 */ @@ -145,72 +145,72 @@ public class LymsPatient implements Serializable { * 职业类别 */ @TableField(value = "job_type") - private String job_type; + private String jobType; /** * 工作单位 */ @TableField(value = "job_name") - private String job_name; + private String jobName; /** * 居住地-省 */ @TableField(value = "reside_prov") - private String reside_prov; + private String resideProv; /** * 居住地-市 */ @TableField(value = "reside_city") - private String reside_city; + private String resideCity; /** * 居住地-县区 */ @TableField(value = "reside_regin") - private String reside_regin; + private String resideRegin; /** * 居住地-详细地址 */ @TableField(value = "reside_addres") - private String reside_addres; + private String resideAddres; /** * 户籍地-省 */ @TableField(value = "register_prov") - private String register_prov; + private String registerProv; /** * 户籍地-市 */ @TableField(value = "register_city") - private String register_city; + private String registerCity; /** * 户籍地-县区 */ @TableField(value = "register_regin") - private String register_regin; + private String registerRegin; /** * 户籍地-详细地址 */ @TableField(value = "register_addres") - private String register_addres; + private String registerAddres; /** * 就诊卡号 */ @TableField(value = "medical_card") - private String medical_card; + private String medicalCard; /** * 建档医生id */ @TableField(value = "bookbuil_doctor") - private String bookbuil_doctor; + private String bookbuilDoctor; /** * 建档医院id */ @TableField(value = "bookbuil_hospital") - private String bookbuil_hospital; + private String bookbuilHospital; /** * 档案类型:1:妇科,2:儿科(以后可以在丰富类似套餐模式) */ @TableField(value = "bookbuil_type") - private String bookbuil_type; + private String bookbuilType; /** * 现病史(1:无,2:有) */ @@ -220,7 +220,7 @@ public class LymsPatient implements Serializable { * 现病史-其他 */ @TableField(value = "xbs_qt") - private String xbs_qt; + private String xbsQt; /** * 既往史(1:无,2:有) */ @@ -230,7 +230,7 @@ public class LymsPatient implements Serializable { * 既往史-其他 */ @TableField(value = "jws_qt") - private String jws_qt; + private String jwsQt; /** * 个人史(1:无,2:有) */ @@ -240,7 +240,7 @@ public class LymsPatient implements Serializable { * 个人史是2的内容 */ @TableField(value = "grs_info") - private String grs_info; + private String grsInfo; /** * 药物过敏史(1:无,2:有) */ @@ -250,7 +250,7 @@ public class LymsPatient implements Serializable { * 药物过敏史-其他 */ @TableField(value = "ywgms_qt") - private String ywgms_qt; + private String ywgmsQt; /** * 月经史(1:无,2:有) */ @@ -260,7 +260,7 @@ public class LymsPatient implements Serializable { * 月经史-其他 */ @TableField(value = "yjs_qt") - private String yjs_qt; + private String yjsQt; /** * 生育史(1:无,2:有) */ @@ -270,7 +270,7 @@ public class LymsPatient implements Serializable { * 生育史是2的内容 */ @TableField(value = "shengys_info") - private String shengys_info; + private String shengysInfo; /** * 家族史(1:无,2:有) */ @@ -280,12 +280,12 @@ public class LymsPatient implements Serializable { * 家族史是2的内容 */ @TableField(value = "jzs_info") - private String jzs_info; + private String jzsInfo; /** * 建档日期 */ @TableField(value = "bookbuil_date") - private Date bookbuil_date; + private Date bookbuilDate;