|
|
@ -51,15 +51,16 @@ |
|
|
|
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' |
|
|
|
where s.DEL_FLAG = '0' |
|
|
|
<if test="agencyId != null and agencyId != ''"> |
|
|
|
and s.AGENCY_ID = #{agencyId} |
|
|
|
</if> |
|
|
|
<if test="axisName != null and axisName != ''"> |
|
|
|
and s.NAME like '%${axisName}%' |
|
|
|
</if> |
|
|
|
<if test="leaderName != null and leaderName != ''"> |
|
|
|
and l.NAME like '%${leaderName}%' |
|
|
|
</if> |
|
|
|
and s.CUSTOMER_ID = #{customerId} |
|
|
|
<if test="agencyId != null and agencyId != ''"> |
|
|
|
and s.AGENCY_ID = #{agencyId} |
|
|
|
</if> |
|
|
|
<if test="axisName != null and axisName != ''"> |
|
|
|
and s.NAME like '%${axisName}%' |
|
|
|
</if> |
|
|
|
<if test="leaderName != null and leaderName != ''"> |
|
|
|
and l.NAME like '%${leaderName}%' |
|
|
|
</if> |
|
|
|
order by s.sort,s.CREATED_TIME,l.CREATED_TIME |
|
|
|
</select> |
|
|
|
|
|
|
|