修复站点-电动所内部实时运行查询报错问题

This commit is contained in:
zq
2025-11-30 10:26:03 +08:00
parent b38bc36ad6
commit c068e7d4ab
3 changed files with 25 additions and 14 deletions

View File

@ -331,10 +331,14 @@
DATE_FORMAT(t.create_time, '%Y-%m-%d') AS dateDay,
DATE_FORMAT(t.create_time, '%H:00:00') AS createDate
from ems_battery_cluster t
where t.site_id = #{siteId}
AND Date(t.create_time) between #{startDate} and #{endDate}
GROUP BY t.site_id,dateDay,createDate
order by dateDay,createDate
WHERE t.site_id = #{siteId}
AND t.create_time >= #{startDate}
AND t.create_time < DATE_ADD(#{endDate}, INTERVAL 1 DAY)
GROUP BY t.site_id,
DATE_FORMAT(t.create_time, '%Y-%m-%d'),
DATE_FORMAT(t.create_time, '%H:00:00')
ORDER BY dateDay, createDate
</select>
<select id="getClusterDataByHour" resultType="com.xzzn.ems.domain.vo.ClusterStatisListVo">