添加告警,设备事件查询
This commit is contained in:
@@ -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) <= DATE(#{csEventUserQueryPage.endTime})
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user