|  | @ -992,7 +992,7 @@ public class RehabilitationManageService {
 | 
	
		
			
				|  |  |         String planDetailSql = " select d.*,h.name,h.code,s.complete_time from wlyy_specialist.wlyy_rehabilitation_plan_detail d LEFT JOIN wlyy_rehabilitation_service_item h on d.hospital_service_item_id=h.code" +
 | 
	
		
			
				|  |  |                 " LEFT JOIN wlyy_specialist.wlyy_patient_rehabilitation_plan p on d.plan_id=p.id" +
 | 
	
		
			
				|  |  |                 " left join wlyy_rehabilitation_operate_records s on s.rehabilitation_detail_id=d.id " +
 | 
	
		
			
				|  |  |                 " where d.status=1 and p.patient='"+patientCode+"' and (d.frequency_code IS NOT NULL OR d.frequency_code <>'')";
 | 
	
		
			
				|  |  |                 " where d.status=1 and p.patient='"+patientCode+"' and d.frequency_code IS NOT NULL AND d.frequency_code <>'' ";
 | 
	
		
			
				|  |  |         if(StringUtils.isNotEmpty(startTime)){
 | 
	
		
			
				|  |  |             planDetailSql += "  and d.execute_Time>='"+startTime+"' ";
 | 
	
		
			
				|  |  |         }
 |