|
|
@ -50,17 +50,18 @@ |
|
|
|
LEFT JOIN |
|
|
|
pli_power_axis_struct AS poas |
|
|
|
ON |
|
|
|
poas.id = #{axisStructId} and poas.DEL_FLAG = '0' |
|
|
|
poas.id = #{axisStructId} and poas.del_flag = '0' |
|
|
|
LEFT JOIN |
|
|
|
pli_power_axis_tag AS ppat |
|
|
|
ON |
|
|
|
poas.CATEGORY_CODE = ppat.CATEGORY_CODE and ppat.DEL_FLAG = '0' |
|
|
|
poas.CATEGORY_CODE = ppat.CATEGORY_CODE and ppat.del_flag = '0' and poas.customer_id = #{customerId} |
|
|
|
WHERE |
|
|
|
ppal.id = #{leaderId} |
|
|
|
AND |
|
|
|
ppal.customer_id = #{customerId} |
|
|
|
AND |
|
|
|
ppal.DEL_FLAG = '0' |
|
|
|
and ppal.del_flag = '0' |
|
|
|
group by |
|
|
|
ppal.id |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|