|
@ -1873,7 +1873,7 @@ public class DoctorController extends BaseController {
|
|
|
public String isAuthentication(){
|
|
|
try {
|
|
|
//0de6a26a62dd11e69faffa163e8aee56
|
|
|
JSONObject data = doctorInfoService.isAuthentication("0de6a26a62dd11e69faffa163e8aee56");
|
|
|
JSONObject data = doctorInfoService.isAuthentication(getRepUID());
|
|
|
return write(200, "获取信息成功!", "data", data);
|
|
|
}catch (Exception e) {
|
|
|
error(e);
|
|
@ -1890,8 +1890,8 @@ public class DoctorController extends BaseController {
|
|
|
@RequestParam(value = "strOldCalledPasswd",required = true) String strOldCalledPasswd,
|
|
|
@RequestParam(value = "strNewCalledPasswd",required = true) String strNewCalledPasswd){
|
|
|
try {
|
|
|
Doctor doctor = doctorInfoService.findDoctorByCode("0de6a26a62dd11e69faffa163e8aee56");
|
|
|
boolean b = doctorInfoService.updateAuthenticationPassword(doctor.getIdcard(),strOldCalledPasswd,strNewCalledPasswd,"0de6a26a62dd11e69faffa163e8aee56");
|
|
|
Doctor doctor = doctorInfoService.findDoctorByCode(getRepUID());
|
|
|
boolean b = doctorInfoService.updateAuthenticationPassword(doctor.getIdcard(),strOldCalledPasswd,strNewCalledPasswd,getRepUID());
|
|
|
if(b){
|
|
|
return write(200, "修改密码成功!", "data", b);
|
|
|
}
|
|
@ -1911,8 +1911,8 @@ public class DoctorController extends BaseController {
|
|
|
@RequestMapping(value = "/installAuthenticationPassword", method = RequestMethod.POST)
|
|
|
public String installAuthenticationPassword(@RequestParam(value = "strNewCalledPasswd",required = true) String strNewCalledPasswd){
|
|
|
try {
|
|
|
Doctor doctor = doctorInfoService.findDoctorByCode("0de6a26a62dd11e69faffa163e8aee56");
|
|
|
boolean b = doctorInfoService.updateAuthenticationPassword(doctor.getIdcard(),"11111111",strNewCalledPasswd,"0de6a26a62dd11e69faffa163e8aee56");
|
|
|
Doctor doctor = doctorInfoService.findDoctorByCode(getRepUID());
|
|
|
boolean b = doctorInfoService.updateAuthenticationPassword(doctor.getIdcard(),"11111111",strNewCalledPasswd,getRepUID());
|
|
|
if(b){
|
|
|
return write(200, "设置密码成功!", "data", b);
|
|
|
}
|
|
@ -1933,8 +1933,8 @@ public class DoctorController extends BaseController {
|
|
|
@RequestMapping(value = "/resetAuthenticationPassword", method = RequestMethod.POST)
|
|
|
public String resetAuthenticationPassword(@RequestParam(value = "strNewCalledPasswd",required = true) String strNewCalledPasswd){
|
|
|
try {
|
|
|
Doctor doctor = doctorInfoService.findDoctorByCode("0de6a26a62dd11e69faffa163e8aee56");
|
|
|
boolean b = doctorInfoService.updateAuthenticationPassword(doctor.getIdcard(),doctor.getCheckPassword(),strNewCalledPasswd,"0de6a26a62dd11e69faffa163e8aee56");
|
|
|
Doctor doctor = doctorInfoService.findDoctorByCode(getRepUID());
|
|
|
boolean b = doctorInfoService.updateAuthenticationPassword(doctor.getIdcard(),doctor.getCheckPassword(),strNewCalledPasswd,getRepUID());
|
|
|
if(b){
|
|
|
return write(200, "重置密码成功!", "data", b);
|
|
|
}
|
|
@ -1979,11 +1979,12 @@ public class DoctorController extends BaseController {
|
|
|
@ObserverRequired
|
|
|
@ResponseBody
|
|
|
@RequestMapping(value = "/checkCertificate", method = RequestMethod.GET)
|
|
|
@ApiOperation("校验医师输入的CA证书是否正确")
|
|
|
public String checkCertificate(
|
|
|
@ApiParam(required = true, name = "certificateNum", value = "证书编号") @RequestParam(value = "certificateNum",required = true) String certificateNum){
|
|
|
|
|
|
try {
|
|
|
boolean b = doctorInfoService.checkCertificate("0de6a26a62dd11e69faffa163e8aee56",certificateNum);
|
|
|
boolean b = doctorInfoService.checkCertificate(getRepUID(),certificateNum);
|
|
|
return write(200, "获取信息成功!", "data", b);
|
|
|
}catch (Exception e) {
|
|
|
error(e);
|