mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-27 23:44:55 +00:00
remove space_id
This commit is contained in:
@ -5,9 +5,7 @@ WITH params AS (
|
||||
string_to_array(NULLIF($4, ''), ',') AS device_ids
|
||||
)
|
||||
|
||||
SELECT
|
||||
B.space_device_uuid AS space_id,
|
||||
TO_CHAR(A.date, 'MM-YYYY') AS month,
|
||||
SELECT TO_CHAR(A.date, 'MM-YYYY') AS month,
|
||||
SUM(A.energy_consumed_kW::numeric) AS total_energy_consumed_KW,
|
||||
SUM(A.energy_consumed_A::numeric) AS total_energy_consumed_A,
|
||||
SUM(A.energy_consumed_B::numeric) AS total_energy_consumed_B,
|
||||
|
||||
Reference in New Issue
Block a user