|  | @ -1585,6 +1585,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
												
													
														
															|  |                 "WHERE " +
 |  |                 "WHERE " +
 | 
												
													
														
															|  |                 "room.patient_id=patient.id " +
 |  |                 "room.patient_id=patient.id " +
 | 
												
													
														
															|  |                 "AND room.outpatient_id=outpatient.id " +
 |  |                 "AND room.outpatient_id=outpatient.id " +
 | 
												
													
														
															|  | 
 |  |                 "AND outpatient.status = 0 " +
 | 
												
													
														
															|  |                 "AND (room.doctor IS NULL or room.doctor='"+doctor+"') " +
 |  |                 "AND (room.doctor IS NULL or room.doctor='"+doctor+"') " +
 | 
												
													
														
															|  |                 "AND room.consult_type="+type;
 |  |                 "AND room.consult_type="+type;
 | 
												
													
														
															|  |         
 |  |         
 |