| 
					
					
						
							
						
					
					
				 | 
				@ -2664,9 +2664,17 @@ namespace Shentun.Peis.PatientRegisters | 
			
		
		
	
		
			
				 | 
				 | 
				                { | 
				 | 
				 | 
				                { | 
			
		
		
	
		
			
				 | 
				 | 
				                    var thirdBookingEnt = await _thirdBookingRepository.FirstOrDefaultAsync(f => f.PatientName == input.PatientName | 
				 | 
				 | 
				                    var thirdBookingEnt = await _thirdBookingRepository.FirstOrDefaultAsync(f => f.PatientName == input.PatientName | 
			
		
		
	
		
			
				 | 
				 | 
				                    && f.IdNo == input.IdNo | 
				 | 
				 | 
				                    && f.IdNo == input.IdNo | 
			
		
		
	
		
			
				 | 
				 | 
				                    && (f.Phone == input.MobileTelephone || f.Phone == input.Telephone)); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    && (f.Phone == input.MobileTelephone || f.Phone == input.Telephone) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    && f.MedicalStatus != '3'); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    if (thirdBookingEnt != null) | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    { | 
			
		
		
	
		
			
				 | 
				 | 
				                        patientRegister.ThirdBookingId = thirdBookingEnt.Id.ToString(); | 
				 | 
				 | 
				                        patientRegister.ThirdBookingId = thirdBookingEnt.Id.ToString(); | 
			
		
		
	
		
			
				 | 
				 | 
				                    } | 
				 | 
				 | 
				                    } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    else | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                        throw new UserFriendlyException("该人员未预约,请先预约"); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                } | 
			
		
		
	
		
			
				 | 
				 | 
				            } | 
				 | 
				 | 
				            } | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				            #endregion
 | 
				 | 
				 | 
				            #endregion
 | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |