0918电表报表-奉贤每日尖峰平谷累加

This commit is contained in:
2025-10-11 17:21:40 +08:00
parent 83f8f4e293
commit 3454359f01
3 changed files with 47 additions and 25 deletions

View File

@ -1048,4 +1048,17 @@
GROUP BY statisDate
order by statisDate desc
</select>
<select id="getLastData" resultMap="EmsAmmeterDataResult">
SELECT
t.site_id,
t.device_id,
t.data_update_time,
t.current_forward_active_total,
t.current_reverse_active_total
FROM ems_ammeter_data t
WHERE site_id = #{siteId}
and device_id = #{deviceId}
ORDER BY data_update_time DESC LIMIT 1
</select>
</mapper>