Commit aa575b9762b91476137661fa9dba216ff4797f37

Authored by shiyang
1 parent 6ed8cb2117
Exists in master

update

Showing 1 changed file with 3 additions and 1 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java View file @ aa575b9
... ... @@ -1227,7 +1227,9 @@
1227 1227 public BaseResponse bookbuildingPatient(@RequestBody LymsPatient patient) {
1228 1228 BaseResponse baseResponse = new BaseResponse();
1229 1229 try {
1230   - patient.setPpasswd(DigestUtils.md5DigestAsHex(patient.getPpasswd().getBytes()));
  1230 + if(null==patient.getId()) {
  1231 + patient.setPpasswd(DigestUtils.md5DigestAsHex("123456".getBytes()));
  1232 + }
1231 1233 boolean f = lymsPatientService.saveOrUpdate(patient);
1232 1234 baseResponse.setErrorcode(f?0:1);
1233 1235 baseResponse.setErrormsg(f?"注册成功!":"注册失败!");