| 
					
				 | 
			
			
				@ -332,7 +332,7 @@ public class PatientService extends BasePatientService<BasePatientDO, BasePatien 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return patient; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public Map<String,Object> resetPwd(String id, String password, String captcha) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public Map<String,Object> forget(String mobile, String password, String captcha) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Map<String, Object> map = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //增加密码 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (password.length() < 6 || password.length() > 20) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -340,8 +340,18 @@ public class PatientService extends BasePatientService<BasePatientDO, BasePatien 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            map.put("message", "密码长度需为6-20位"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        BasePatientDO patient = basePatientDao.findOne(id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String mobile = patient.getMobile(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<BasePatientDO> list = basePatientDao.findByMobileAndDel(mobile, "1"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (CollectionUtils.isEmpty(list)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            map.put("code", -1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            map.put("message", "该手机号暂未注册!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else if(list.size()>1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            map.put("code", -1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            map.put("message", "该手机号对应多个账号,请联系管理员"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        BasePatientDO patient = list.get(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        // 对验证码进行校验 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        int res = baseSmsService.check(mobile, 2, captcha); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (-2 == res) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -357,7 +367,7 @@ public class PatientService extends BasePatientService<BasePatientDO, BasePatien 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            map.put("message", "验证码无效!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resetPassword(id, password); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resetPassword(patient.getId(), password); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            map.put("code", 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            map.put("message", "设置成功!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 |