数据20250904优化-点位列表分页&点位查询

This commit is contained in:
2025-09-13 21:49:33 +08:00
parent ecbe55cdbf
commit 8a4cff0a6c
8 changed files with 115 additions and 4 deletions

View File

@ -348,7 +348,7 @@
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()
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