Maybe filter out Error Values
This commit is contained in:
parent
3181c9dc72
commit
52688a5e70
@ -81,6 +81,7 @@ class SubDeviceManager
|
||||
JOIN devices d ON sd.device_id = d.device_id
|
||||
JOIN records r ON r.subdevice_id = sd.subdevice_id
|
||||
WHERE d.room_id IN (".str_repeat("?,", count($roomIds)-1)."?)
|
||||
/*AND value != '999'*/
|
||||
AND r.record_id IN (
|
||||
SELECT MAX(record_id)
|
||||
FROM records
|
||||
|
Loading…
Reference in New Issue
Block a user