Commit 7cfb2f7747294b50aa55d0552ba2560cd532cdb3
1 parent
264e7e4d7f
Exists in
master
and in
1 other branch
update
Showing 1 changed file with 3 additions and 0 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java
View file @
7cfb2f7
| ... | ... | @@ -899,6 +899,9 @@ |
| 899 | 899 | if(1==patient.getType()){//1 重置密码 |
| 900 | 900 | patient.setPpasswd(DigestUtils.md5DigestAsHex(Constant.COMMON_PASSWD.getBytes())); |
| 901 | 901 | } |
| 902 | + if(StringUtil.isNotEmpty(patient.getPpasswd())){ | |
| 903 | + patient.setPpasswd(DigestUtils.md5DigestAsHex(patient.getPpasswd().getBytes())); | |
| 904 | + } | |
| 902 | 905 | boolean f=lymsPatientService.updateById(patient); |
| 903 | 906 | baseResponse.setErrorcode(f==true?0:1); |
| 904 | 907 | baseResponse.setErrormsg(f==true?"成功":"失败"); |