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