| 
					
				 | 
			
			
				@ -1484,7 +1484,7 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					 * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					public String getConsultCodeByOutpatientId(String outpatientid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String totalSql = "SELECT id FROM wlyy_consult WHERE relation_code='"+outpatientid+"' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String totalSql = "SELECT id as \"id\" FROM wlyy_consult WHERE relation_code='"+outpatientid+"' "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						List<Map<String, Object>> rstotal = hibenateUtils.createSQLQuery(totalSql); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String id = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						if (rstotal != null && rstotal.size() > 0) { 
			 |