|
@ -1900,7 +1900,7 @@ public class DoctorController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 重置密码
|
|
|
* 初始设置实名软证书调用保护口令
|
|
|
*/
|
|
|
@ApiOperation("初始设置实名软证书调用保护口令")
|
|
|
@ObserverRequired
|
|
@ -1909,7 +1909,8 @@ public class DoctorController extends BaseController {
|
|
|
public String installAuthenticationPassword(@RequestParam(value = "strNewCalledPasswd",required = true) String strNewCalledPasswd){
|
|
|
try {
|
|
|
Doctor doctor = doctorInfoService.findDoctorByCode(getUID());
|
|
|
boolean b = doctorInfoService.updateAuthenticationPassword(doctor.getIdcard(),"11111111",strNewCalledPasswd,getUID());
|
|
|
String strOldCalledPasswd = StringUtils.isNotEmpty(doctor.getCheckPassword())?doctor.getCheckPassword():"11111111";
|
|
|
boolean b = doctorInfoService.updateAuthenticationPassword(doctor.getIdcard(),strOldCalledPasswd,strNewCalledPasswd,getUID());
|
|
|
if(b){
|
|
|
return write(200, "设置密码成功!", "data", b);
|
|
|
}
|