| 
					
				 | 
			
			
				@ -476,7 +476,7 @@ public class RehabilitationManageService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        for (int i=1;i<planIdlist.length;i++){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            planCondition .append(",'"+planIdlist[i]+"'"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql = " select d.*,DATE_FORMAT(d.execute_time,'%Y/%m/%d %H:%i') as executeTime ,i.code,i.name,1 as flag from wlyy_specialist.wlyy_rehabilitation_plan_detail d " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql = " select d.*,DATE_FORMAT(d.execute_time,'%Y/%m/%d %H:%i') as executeTime ,i.code,IF(d.followup_detail_type=1,'康复随访(社区)',i.name) name,1 as flag from wlyy_specialist.wlyy_rehabilitation_plan_detail d " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " LEFT JOIN wlyy_rehabilitation_service_item i on i.code = d.hospital_service_item_id  " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " where  d.plan_id in ("+planCondition+" )AND  d.execute_time IS NOT NULL  and d.execute_time <>'' " ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(searchTask!=null){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -484,7 +484,7 @@ public class RehabilitationManageService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(StringUtils.isNotBlank(doctorCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    sql+=" and d.doctor='"+doctorCode+"' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sql+=" and i.code="+searchTask+" " ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                //sql+=" and i.code="+searchTask+" " ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sql+=" and i.code="+searchTask+" " ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }/*else if(searchTask==5){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -521,7 +521,7 @@ public class RehabilitationManageService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                list = jdbcTemplate.queryForList(cfxfSql); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (6 == searchTask || searchTask == 8){ //随访 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (6 == searchTask){ //随访 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                String sfSql = "SELECT DISTINCT DATE_FORMAT(wf.followup_date,'%Y/%m/%d %H:%i') followupDate,DATE_FORMAT(wf.followup_plan_date,'%Y/%m/%d %H:%i') executeTime,wf.doctor_code doctorCode,wf.followup_class followupClass, " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        " wf.patient_code AS patientCode,wf.patient_name AS patientName,wf.doctor_name doctorName,wf.`status` AS `status`,wf.org_name orgName," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        " wf.org_code orgCode,sd.value AS `value`, wf.followup_type  followupType,wf.id AS id, 6 AS code,2 as flag FROM  wlyy.wlyy_followup wf " + 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -649,7 +649,7 @@ public class RehabilitationManageService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql = "select h.name as title,h.content as content,h.code as itemType,d.id,d.execute_time,d.hospital_name,d.status,d.type,d.expense,d.doctor as executeDoctor, " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " d.doctor_name as executeDoctorName,p.patient ,p.name as patientName,p.create_user as createDoctor,p.create_user_name as createDoctorName, p.status as planStatus," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " p.disease,p.disease_name as diseaseName,p.title as planTitle,d.plan_id as planId,d.relation_code as relationCode,d.frequency_code as frequencyCode,d.remark  "+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " ,a.appointment_time appointmentTime,a.appointment_doctor appointmentDoctor,a.appointment_doctor_name appointmentDoctorName,d.reservation_type reservationType" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " ,a.appointment_time appointmentTime,a.appointment_doctor appointmentDoctor,a.appointment_doctor_name appointmentDoctorName,d.reservation_type reservationType,d.followup_detail_type followupDetailType " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " from wlyy_specialist.wlyy_rehabilitation_plan_detail d " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                " LEFT JOIN wlyy_specialist.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 " + 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -676,7 +676,7 @@ public class RehabilitationManageService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        resultMap.put("appointmentDoctor",one.get("appointmentDoctor")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        resultMap.put("appointmentDoctorName",one.get("appointmentDoctorName")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        resultMap.put("reservationType",one.get("reservationType"));//复诊类型:1线上,2线下,3远程 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        resultMap.put("followupDetailType",one.get("followupDetailType")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        resultMap.put("frequencyCode",one.get("frequencyCode")+""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        resultMap.put("isMyTask",isMyTask);//0不是自己的任务,1是自己的任务 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        if(!(one.get("specialistDoctor")+"").equals((one.get("create_user")+""))){ 
			 |