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