概率统计-电量指标默认7天
This commit is contained in:
@ -379,8 +379,10 @@
|
||||
from ( SELECT p.site_id, p.device_id,p.date_month,p.date_day, MAX(p.data_update_time) AS max_update_time
|
||||
FROM ems_pcs_data p
|
||||
where p.site_id = #{siteId}
|
||||
<if test="startDate != null and endDate != null">
|
||||
<if test="startDate != null">
|
||||
and p.data_update_time >= #{startDate}
|
||||
</if>
|
||||
<if test="endDate != null">
|
||||
and p.data_update_time < DATE_ADD(#{endDate}, INTERVAL 1 DAY)
|
||||
</if>
|
||||
GROUP BY p.site_id,p.device_id,p.date_month,p.date_day
|
||||
|
Reference in New Issue
Block a user