20250808优化-设备监控
This commit is contained in:
@ -306,8 +306,7 @@
|
||||
from ems_pcs_data t
|
||||
inner join( SELECT p.site_id, p.device_id, p.date_month,p.date_day, MAX(p.data_update_time) AS max_update_time
|
||||
FROM ems_pcs_data p
|
||||
where p.site_id = #{siteId}
|
||||
and p.data_update_time >= CURDATE() - INTERVAL #{limitTime} DAY
|
||||
<include refid="commonFilter"/>
|
||||
GROUP BY p.site_id,p.device_id,p.date_month,p.date_day
|
||||
) latest ON t.site_id = latest.site_id
|
||||
AND t.device_id = latest.device_id
|
||||
|
||||
Reference in New Issue
Block a user