Commit 3c2d4c16 authored by 张森's avatar 张森

大屏弹窗排油系统bug处理

parent 4226aeae
......@@ -7421,14 +7421,24 @@
update_date AS updateDate,
equipment_index_key AS equipmentIndexKey
FROM
(
SELECT
equipment_specific_id,
update_date,
equipment_index_key,
ROW_NUMBER() OVER ( PARTITION BY equipment_specific_id ORDER BY update_date DESC ) AS rn
FROM
wl_equipment_specific_index
WHERE
equipment_index_key IN ( 'ONL_DrainOilValve_Open', 'ONL_DrainOilValve_Close' )
AND `value` = 'true'
AND equipment_specific_id in
AND equipment_specific_id IN
<foreach collection="collect" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
) t
WHERE
t.rn = 1
GROUP BY
equipment_specific_id
ORDER BY
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment