mirror of
https://github.com/SyncrowIOT/data.git
synced 2026-10-23 08:47:56 +00:00
changes
This commit is contained in:
@@ -18,7 +18,7 @@ WITH device_logs AS (
|
||||
ORDER BY "device-status-log".event_time) AS prev_value
|
||||
FROM device
|
||||
LEFT JOIN "device-status-log"
|
||||
ON device.uuid::text = "device-status-log".device_id
|
||||
ON device.uuid = "device-status-log".device_id
|
||||
LEFT JOIN product
|
||||
ON product.uuid = device.product_device_uuid
|
||||
WHERE product.cat_name = 'hps'
|
||||
@@ -68,5 +68,5 @@ INNER JOIN subspace
|
||||
INNER JOIN "space" AS space
|
||||
ON space.uuid = device.space_device_uuid
|
||||
WHERE "device-status-log".code = 'presence_state'
|
||||
GROUP BY 1, 2, 3, 4, 5,6
|
||||
GROUP BY 1, 2, 3, 4, 5,6;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user