0929-部分数据优化

This commit is contained in:
2025-09-29 20:05:16 +08:00
parent 2bbc0abc08
commit 7121fdecfa
4 changed files with 36 additions and 7 deletions

View File

@ -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