0929-部分数据优化
This commit is contained in:
@ -383,7 +383,6 @@
|
||||
SELECT p.device_id, 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()
|
||||
GROUP BY p.device_id
|
||||
) latest inner join ems_pcs_data t ON latest.device_id = t.device_id
|
||||
AND latest.max_update_time = t.data_update_time
|
||||
|
||||
Reference in New Issue
Block a user