|  | @ -8843,13 +8843,15 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 " p.id as \"id\"," +
 | 
	
		
			
				|  |  |                 " p.check_reason as \"checkReason\" " +
 | 
	
		
			
				|  |  |                 " from wlyy_prescription p left join wlyy_outpatient o on p.outpatient_id  = o.id" +
 | 
	
		
			
				|  |  |                 " where  1=1";
 | 
	
		
			
				|  |  |                 " where  1=1 ";
 | 
	
		
			
				|  |  |         if (StringUtils.isNotBlank(keyWord)){
 | 
	
		
			
				|  |  |             sql+=" and (p.patient_name like '%"+keyWord+"%' or p.idcard = '"+keyWord+"'" +
 | 
	
		
			
				|  |  |                     " or o.card_no = '"+keyWord+"')";
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(checkStatus)){
 | 
	
		
			
				|  |  |             sql+=" and p.check_status ="+checkStatus;
 | 
	
		
			
				|  |  |         }else {
 | 
	
		
			
				|  |  |             sql+=" and p.check_status != 4";
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(doctorId)){
 | 
	
		
			
				|  |  |             sql+=" and p.doctor = '"+doctorId+"'";
 |