|
@ -51,6 +51,7 @@ |
|
|
left join pli_power_axis_leader l on l.ID = sl.LEADER_ID and l.del_flag = '0' |
|
|
left join pli_power_axis_leader l on l.ID = sl.LEADER_ID and l.del_flag = '0' |
|
|
left join pli_power_axis_tag t on s.CATEGORY_CODE = t.CATEGORY_CODE and t.DEL_FLAG = '0' |
|
|
left join pli_power_axis_tag t on s.CATEGORY_CODE = t.CATEGORY_CODE and t.DEL_FLAG = '0' |
|
|
where s.DEL_FLAG = '0' |
|
|
where s.DEL_FLAG = '0' |
|
|
|
|
|
and s.CUSTOMER_ID = #{customerId} |
|
|
<if test="agencyId != null and agencyId != ''"> |
|
|
<if test="agencyId != null and agencyId != ''"> |
|
|
and s.AGENCY_ID = #{agencyId} |
|
|
and s.AGENCY_ID = #{agencyId} |
|
|
</if> |
|
|
</if> |
|
|