Commit 49a6f210 by 李小龙

fix: 设备告警数据

parent 9e1968ff
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</sql> </sql>
<select id="getDayMaxDurationList" resultType="com.makeit.entity.platform.alarm.PlatDayDurationRecord"> <select id="getDayMaxDurationList" resultType="com.makeit.entity.platform.alarm.PlatDayDurationRecord">
select select
pddr.ori_device_id, pddr.device_id,
pddr.day, pddr.day,
max(pddr.duration) as duration max(pddr.duration) as duration
from plat_day_duration_record pddr from plat_day_duration_record pddr
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</foreach> </foreach>
</if> </if>
</where> </where>
group by pddr.ori_device_id, pddr.day group by pddr.device_id, pddr.day
order by duration order by duration
</select> </select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment