@ -330,6 +330,7 @@
FROM ic_resi_user
WHERE DEL_FLAG = '0'
AND CUSTOMER_ID = #{customerId}
AND (AGENCY_ID = #{agencyId} OR PIDS LIKE CONCAT('%',#{agencyId},'%'))
<if test="level != null and level != ''">
<if test="level=='agency'">
AND (AGENCY_ID = #{id} OR PIDS LIKE CONCAT('%',#{id},'%'))