| 
						
						
							
								
							
						
						
					 | 
					@ -515,7 +515,7 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        WHERE 1=1 | 
					 | 
					 | 
					        WHERE 1=1 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <if test="level != null and level != ''"> | 
					 | 
					 | 
					        <if test="level != null and level != ''"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					             <if test="level=='agency'"> | 
					 | 
					 | 
					             <if test="level=='agency'"> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                AND (CONCAT(PIDS, agency_id) like  CONCAT(#{id},'%')) | 
					 | 
					 | 
					                AND (CONCAT(PIDS,':', agency_id) like  CONCAT('%',#{id},'%')) | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					            </if> | 
					 | 
					 | 
					            </if> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            <if test="level=='grid'"> | 
					 | 
					 | 
					            <if test="level=='grid'"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                AND GRID_ID = #{id} | 
					 | 
					 | 
					                AND GRID_ID = #{id} | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |