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 62bb734..1abbbed 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -1227,7 +1227,9 @@ public class PatientController { public BaseResponse bookbuildingPatient(@RequestBody LymsPatient patient) { BaseResponse baseResponse = new BaseResponse(); try { - patient.setPpasswd(DigestUtils.md5DigestAsHex(patient.getPpasswd().getBytes())); + if(null==patient.getId()) { + patient.setPpasswd(DigestUtils.md5DigestAsHex("123456".getBytes())); + } boolean f = lymsPatientService.saveOrUpdate(patient); baseResponse.setErrorcode(f?0:1); baseResponse.setErrormsg(f?"注册成功!":"注册失败!");