@ -1050,7 +1050,7 @@
and LEVEL = 'community'
AND CUSTOMER_ID = #{customerId}
<if test="staffAgencyId != null and staffAgencyId != ''">
AND PIDS like concat('%',#{staffAgencyId},'%')
AND (PIDS like concat('%',#{staffAgencyId},'%') or ID = #{staffAgencyId})
</if>