| 
					
				 | 
			
			
				@ -4341,6 +4341,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "outpatient.patient=patient.id " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "AND outpatient.status <> -1 " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "AND outpatient.doctor='"+doctor+"' " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "AND outpatient.pay_status = 1 " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "AND outpatient.outpatient_type= '"+outpatient_type+"' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if("1".equals(outpatient_type)){//复诊 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            sql =  sql + " AND outpatient.type= '"+type+"' "; 
			 |