|  | @ -483,7 +483,7 @@ public class RehabilitationManageService {
 | 
	
		
			
				|  |  |                 " LEFT JOIN wlyy_specialist.wlyy_hospital_service_item h on d.hospital_service_item_id = h.id "+
 | 
	
		
			
				|  |  |                 " LEFT JOIN wlyy_specialist.wlyy_service_item i on i.id = h.service_item_id " +
 | 
	
		
			
				|  |  |                 " LEFT JOIN wlyy_specialist.wlyy_patient_rehabilitation_plan p on d.plan_id=p.id " +
 | 
	
		
			
				|  |  |                 " where d.id in ("+planDetailResult+")";
 | 
	
		
			
				|  |  |                 " where d.id in ("+planDetailResult+") order BY d.execute_time ASC ";
 | 
	
		
			
				|  |  |         List<Map<String,Object>> serviceItemList = jdbcTemplate.queryForList(sql);
 | 
	
		
			
				|  |  | //        if(serviceItemList.size()>0){
 | 
	
		
			
				|  |  | //            Map<String,Object> serviceItem = serviceItemList.get(0);
 | 
	
	
		
			
				|  | @ -1122,7 +1122,7 @@ public class RehabilitationManageService {
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public ObjEnvelop dailyByJob(String startTime,String endTime){
 | 
	
		
			
				|  |  |         String sql = "select d.doctor,p.patient,h.service_item_name AS serviceItemName,d.time_type AS timeType from wlyy_rehabilitation_plan_detail d left join wlyy_patient_rehabilitation_plan p on d.plan_id=p.id left join wlyy_hospital_service_item h ON h.id=d.hospital_service_item_id where d.status!=1 and p.status=1 and d.execute_time>='"+startTime+"' and d.execute_time<='"+endTime+"' GROUP BY d.doctor,p.patient";
 | 
	
		
			
				|  |  |         String sql = "select d.doctor,p.patient,h.service_item_name AS serviceItemName,d.time_type AS timeType from wlyy_rehabilitation_plan_detail d left join wlyy_patient_rehabilitation_plan p on d.plan_id=p.id left join wlyy_hospital_service_item h ON h.id=d.hospital_service_item_id where d.status!=1 and p.status=1 and d.execute_time>='"+startTime+"' and d.execute_time<='"+endTime+"' GROUP BY d.doctor,p.patient,d.execute_time";
 | 
	
		
			
				|  |  | //        List<Object> list = rehabilitationDetailDao.dailyJob(startTime,endTime);
 | 
	
		
			
				|  |  |         List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
 | 
	
		
			
				|  |  |          String doctorCode = "";
 |