Commit c09754996174817b5af208c2480b31172a3f7e5a
1 parent
c1b00b3fda
Exists in
master
update
Showing 1 changed file with 1 additions and 4 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java
View file @
c097549
... | ... | @@ -299,10 +299,7 @@ |
299 | 299 | @TokenRequired |
300 | 300 | public BaseResponse updateDoctorPassword(@RequestBody LymsDoctor doctor){ |
301 | 301 | BaseResponse baseResponse=new BaseResponse(); |
302 | - | |
303 | - if(StringUtil.isNotEmpty(doctor.getDpasswd())){ | |
304 | - doctor.setDpasswd(DigestUtils.md5DigestAsHex(Constant.COMMON_PASSWD.getBytes())); | |
305 | - } | |
302 | + doctor.setDpasswd(DigestUtils.md5DigestAsHex(Constant.COMMON_PASSWD.getBytes())); | |
306 | 303 | boolean f=lymsDoctorService.updateById(doctor); |
307 | 304 | baseResponse.setErrorcode(f==true?0:1); |
308 | 305 | baseResponse.setErrormsg(f==true?"成功":"失败"); |