|  | @ -507,7 +507,9 @@ public class RehabilitationManageService {
 | 
	
		
			
				|  |  |         sql = TransforSqlUtl.wlyy_rehabilitation_plan_detailAll2(sql);
 | 
	
		
			
				|  |  |         List<Map<String,Object>> rehabilitationDetailList = jdbcTemplate.queryForList(sql);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String planPatientSql = " SELECT patient FROM wlyy_specialist.wlyy_patient_rehabilitation_plan INNER JOIN wlyy.wlyy_sign_family f ON p.patient = f.patient  WHERE id in ("+planCondition+" ) AND `status` = 1 AND expenses_status = 1 AND  doctor = '"+doctorCode+"' ";
 | 
	
		
			
				|  |  |         String planPatientSql = " SELECT p.patient FROM wlyy_specialist.wlyy_patient_rehabilitation_plan p " +
 | 
	
		
			
				|  |  |                 "INNER JOIN wlyy.wlyy_sign_family f ON p.patient = f.patient  WHERE p.id in ("+planCondition+" ) " +
 | 
	
		
			
				|  |  |                 "AND f.`status` = 1 AND f.expenses_status = 1 AND  f.doctor = '"+doctorCode+"' ";
 | 
	
		
			
				|  |  |         List<Map<String, Object>> patientCodeList = jdbcTemplate.queryForList(planPatientSql);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         List<Map<String, Object>> list = null;
 |