| 
					
				 | 
			
			
				@ -3763,7 +3763,7 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
									sql +=" AND  op.register_date >= '"+DateUtil.dateToStrShort(new Date())+" 00:00:00' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							}else{}*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							if("xm_ykyy_wx".equals(wxId)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							/*if("xm_ykyy_wx".equals(wxId)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								if (flag){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
									sql +=" and op.register_date >= str_to_date('"+DateUtil.dateToStrShort(new Date())+" 00:00:00','YYYY-MM-DD HH24:MI:SS')"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								}else { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -3772,7 +3772,7 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							}else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								sql +=" AND  op.register_date >= '"+DateUtil.dateToStrShort(new Date())+" 00:00:00' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							}*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							sql =sql +" AND op.type in ('1','2') AND op.outpatient_type = 3 "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							sql =sql +" ORDER BY op.create_time DESC"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -3827,7 +3827,7 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							}else if("16".equals(type)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								//视频复诊 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								sql =sql +"AND op.type=2 AND op.outpatient_type=1 "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								if("xm_ykyy_wx".equals(wxId)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								/*if("xm_ykyy_wx".equals(wxId)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
									if (flag){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										sql +=" and op.register_date >= str_to_date('"+DateUtil.dateToStrShort(new Date())+" 00:00:00','YYYY-MM-DD HH24:MI:SS')"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
									}else { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -3836,11 +3836,11 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								}else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
									sql +=" AND  op.register_date >= '"+DateUtil.dateToStrShort(new Date())+" 00:00:00' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								}*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							}else if("12".equals(type)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								//视频复诊 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								sql =sql +"AND op.outpatient_type=2"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								if("xm_ykyy_wx".equals(wxId)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								/*if("xm_ykyy_wx".equals(wxId)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
									if (flag){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										sql +=" and op.register_date >= str_to_date('"+DateUtil.dateToStrShort(new Date())+" 00:00:00','YYYY-MM-DD HH24:MI:SS')"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
									}else  { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -3848,7 +3848,7 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
									} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								}else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
									sql +=" AND  op.register_date >= '"+DateUtil.dateToStrShort(new Date())+" 00:00:00' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								}*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							}else{} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							sql =sql +" ORDER BY op.create_time DESC"; 
			 |