|
@ -679,6 +679,29 @@ public class PatientController extends WeixinBaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 手机号是否注册
|
|
|
*
|
|
|
* @param mobile 手机号
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/is_mobile_register")
|
|
|
@ResponseBody
|
|
|
public String isMobileRegister(String mobile){
|
|
|
try {
|
|
|
if (StringUtils.isEmpty(mobile)) {
|
|
|
return error(-1, "手机号码不能为空");
|
|
|
}
|
|
|
|
|
|
int result = patientInfoService.isMobileRegister(mobile);
|
|
|
|
|
|
return write(200, "查询成功","data",result);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 修改密码
|
|
|
* @param newPassword1 新密码1
|