|  | @ -2275,13 +2275,18 @@ public class ImService {
 | 
	
		
			
				|  |  | 					"WHERE op.patient=patient.id " +
 | 
	
		
			
				|  |  | 					"AND op.doctor='"+doctorCode+"' " +
 | 
	
		
			
				|  |  | 					"AND op.status in ('0','1') ";
 | 
	
		
			
				|  |  | 			if("9".equals(type)){//图文复诊
 | 
	
		
			
				|  |  | 				sql =sql +"AND op.type=1 ";
 | 
	
		
			
				|  |  | 			if("9".equals(type)){
 | 
	
		
			
				|  |  | 				//图文复诊
 | 
	
		
			
				|  |  | 				sql =sql +"AND op.type=1 AND op.outpatient_type=1 ";
 | 
	
		
			
				|  |  | 			}else if("16".equals(type)){
 | 
	
		
			
				|  |  | 				//视频复诊
 | 
	
		
			
				|  |  | 				sql =sql +"AND op.type=2 ";
 | 
	
		
			
				|  |  | 				sql =sql +"AND op.type=2 AND op.outpatient_type=1 ";
 | 
	
		
			
				|  |  | 			}else if("12".equals(type)){
 | 
	
		
			
				|  |  | 				//视频复诊
 | 
	
		
			
				|  |  | 				sql =sql +"A ND op.outpatient_type=2";
 | 
	
		
			
				|  |  | 			}else{}
 | 
	
		
			
				|  |  | 			sql =sql +"ORDER BY op.create_time DESC";
 | 
	
		
			
				|  |  | 			sql =sql + " AND  op.register_date >= '"+DateUtil.dateToStrShort(new Date())+" 00:00:00' ";
 | 
	
		
			
				|  |  | 			sql =sql +" ORDER BY op.create_time DESC";
 | 
	
		
			
				|  |  | 		}
 | 
	
		
			
				|  |  | 		
 | 
	
		
			
				|  |  | 		List<ConsultVO> result = new ArrayList<>();
 |