From aa575b9762b91476137661fa9dba216ff4797f37 Mon Sep 17 00:00:00 2001 From: shiyang <316555390@qq.com> Date: Wed, 13 Jul 2022 12:28:04 +0800 Subject: [PATCH] update --- .../java/com/lyms/talkonlineweb/controller/PatientController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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?"注册成功!":"注册失败!"); -- 1.8.3.1