|  |  | @ -42,7 +42,9 @@ | 
			
		
	
		
			
				
					|  |  |  |                e.source_type | 
			
		
	
		
			
				
					|  |  |  |         from ic_enterprise e | 
			
		
	
		
			
				
					|  |  |  |         where e.CUSTOMER_ID = #{customerId} | 
			
		
	
		
			
				
					|  |  |  |         <if test="search != null and search != ''"> | 
			
		
	
		
			
				
					|  |  |  |           and e.PLACE_ORG_NAME like CONCAT('%',#{search},'%') | 
			
		
	
		
			
				
					|  |  |  |         </if> | 
			
		
	
		
			
				
					|  |  |  |           and (e.AGENCY_ID = #{agencyId} or e.AGENCY_PIDS like CONCAT(#{staffOrgIds}, '%')) | 
			
		
	
		
			
				
					|  |  |  |         <if test="'enterprise_patrol_unqualified'!= categoryKey"> | 
			
		
	
		
			
				
					|  |  |  |             and e.PLACE_TYPE = #{categoryKey} | 
			
		
	
	
		
			
				
					|  |  | 
 |