| 
					
				 | 
			
			
				@ -753,4 +753,27 @@ public class DoctorInfoService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String newPassword1Temp= MD5.GetMD5Code(newPassword1+doctor.getSalt()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        doctor.setPassword(newPassword1Temp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 查询患者是否与医生签约 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param patient 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param doctor 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public boolean isPatientSigned(String patient, String doctor) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        boolean bo = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //签约团队 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        DoctorTeam dt = doctorTeamDao.findByPatientCode(patient); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        DoctorTeam dtSS = doctorTeamDao.findSsTeamByPatientCode(patient); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //医生是否属于团队成员 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (dt != null && doctorTeamDoctor.countMemberByTeamAndCode(dt.getCode(), doctor) > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            bo = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (dtSS != null && doctorTeamDoctor.countMemberByTeamAndCode(dtSS.getCode(), doctor) > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            bo = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return bo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				} 
			 |