|
@ -147,6 +147,7 @@ |
|
|
) t ON t.AGENCY = ag.id |
|
|
) t ON t.AGENCY = ag.id |
|
|
WHERE |
|
|
WHERE |
|
|
ag.CUSTOMER_ID = #{customerId} |
|
|
ag.CUSTOMER_ID = #{customerId} |
|
|
|
|
|
AND ag.AGENCY_DIM_TYPE = 'all' |
|
|
<if test="level == 'community'"> |
|
|
<if test="level == 'community'"> |
|
|
AND ag.`LEVEL` = 'community' |
|
|
AND ag.`LEVEL` = 'community' |
|
|
</if> |
|
|
</if> |
|
|