| 
					
				 | 
			
			
				@ -330,8 +330,7 @@ public class RehabilitationManageService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public ObjEnvelop calendarPlanDetail(String executeStartTime,String executeEndTime,String planId,Integer searchTask,Integer status,String doctorCode) throws Exception{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql = " select d.* from wlyy_specialist.wlyy_rehabilitation_plan_detail d " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " LEFT JOIN wlyy_specialist.wlyy_hospital_service_item h on d.hospital_service_item_id = h.id "+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " LEFT JOIN wlyy_service_item i on i.id = h.service_item_id " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " LEFT JOIN wlyy_rehabilitation_service_item i on i.code = d.hospital_service_item_id " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " where  d.plan_id='"+planId+"' " ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(StringUtils.isNotBlank(executeStartTime)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            sql += " and d.execute_time>='"+executeStartTime+"' "; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -340,12 +339,10 @@ public class RehabilitationManageService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            sql += " and d.execute_time<='"+executeEndTime+"' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(searchTask!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(searchTask==1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(searchTask==8){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sql+=" and d.doctor='"+doctorCode+"' " ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else if(searchTask==2||searchTask==4||searchTask==3){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sql+=" and i.type="+searchTask+" " ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else if(searchTask==5){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sql+=" and i.reserve=1 " ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sql+=" and i.code="+searchTask+" " ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(status!=null){ 
			 |