电量指标-修改

This commit is contained in:
2025-07-22 13:54:07 +08:00
parent cbcaaaffb6
commit b4cbf0b34e
4 changed files with 28 additions and 17 deletions

View File

@ -339,8 +339,7 @@
SUM(t.total_active_power) as totalActivePower,
SUM(t.total_reactive_power) as totalReactivePower,
sum(t.daily_ac_charge_energy) as dayChargedCap,
sum(t.daily_ac_discharge_energy) as dayDisChargedCap,
#{siteId} as siteId
sum(t.daily_ac_discharge_energy) as dayDisChargedCap
FROM (
SELECT p.device_id, MAX(p.data_update_time) AS max_update_time
FROM ems_pcs_data p