| 
					
				 | 
			
			
				@ -4338,7 +4338,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "base_patient patient " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "WHERE " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "outpatient.patient=patient.id " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "AND outpatient.status in (0,1) " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "AND outpatient.status <> -1 " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "AND outpatient.doctor='"+doctor+"' " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "AND outpatient.outpatient_type= '"+outpatient_type+"' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if("1".equals(outpatient_type)){//复诊 
			 |