添加告警,设备事件查询

This commit is contained in:
hzj
2024-11-06 15:01:12 +08:00
parent a4acc4775a
commit 4b8e2488d2

View File

@@ -121,9 +121,18 @@
<select id="queryEventPageWeb" resultType="com.njcn.csharmonic.pojo.vo.EventDetailVO">
select DISTINCT b.id id,
b.device_id deviceId,b.line_id lineId,b.code code,
b.start_time startTime,b.tag tag ,b.wave_path wavePath,b.instant_pics,b.rms_pics , b.type type,b.level level,b.location location,d.name lineName
from cs_event b inner join cs_equipment_delivery c on b.device_id=c.id inner join cs_line d on d.device_id=b.device_id and d.clDid=b.cl_did where 1=1
b.start_time startTime,b.tag tag ,b.wave_path wavePath,b.instant_pics,b.rms_pics , b.type type,b.level level,b.location location
<if test="csEventUserQueryPage!=null and csEventUserQueryPage.type != 3 ">
,d.name lineName
</if>
from cs_event b
<if test="csEventUserQueryPage!=null and csEventUserQueryPage.type != 3 ">
inner join cs_equipment_delivery c on b.device_id=c.id inner join cs_line d on d.device_id=b.device_id and d.clDid=b.cl_did
</if>
where 1=1
<if test="csEventUserQueryPage!=null and csEventUserQueryPage.type != 3 ">
and b.process=c.process
</if>
<if test="csEventUserQueryPage!=null and csEventUserQueryPage.endTime != null and csEventUserQueryPage.endTime !=''">
AND DATE(b.start_time) &lt;= DATE(#{csEventUserQueryPage.endTime})
</if>