@ -37,7 +37,7 @@
where DEL_FLAG=0
and CUSTOMER_ID=#{customerId}
<choose>
<when test="orgPid != ''' and orgPid != null and agencyId != null and agencyId != ''">
<when test="orgPid != '' and orgPid != null and agencyId != null and agencyId != ''">
AND ((AGENCY_ID = #{agencyId} or AGENCY_PIDS LIKE concat('%',#{agencyId}, '%' ))
or
id =#{orgPid})