| 
					
				 | 
			
			
				@ -413,8 +413,8 @@ public class ServicePackageService extends BaseJpaService<ServicePackageDO, Serv 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public List<Map<String,Object>> servicePackageByServerItem(String patient,String serverItem) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql="select  DISTINCT pack.* from base_service_package_record re, base_service_package_item item,base_service_package pack  \n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "where re.service_package_id = item.service_package_id and item.service_package_id = pack.id and re.sign_id in (\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "select rd.id from base_service_package_sign_record rd  where rd.patient='"+patient+"' and item='"+serverItem+"' and rd.status=1) "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "where re.service_package_id = item.service_package_id and item.service_package_id = pack.id and item.code='"+serverItem+"' and re.sign_id in (\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "select rd.id from base_service_package_sign_record rd  where rd.patient='"+patient+"' and rd.status=1) "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<Map<String,Object>> result = jdbcTemplate.queryForList(sql); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 |