事件显示添加字段

This commit is contained in:
hzj
2024-09-20 09:32:02 +08:00
parent aaa1f69ec2
commit a6465911c4
2 changed files with 5 additions and 2 deletions

View File

@@ -51,6 +51,9 @@ public class EventDetailVO {
@ApiModelProperty(value = "设备名称")
private String equipmentName;
@ApiModelProperty(value = "监测点名称")
private String lineName;
/**
* 事件时间
*/

View File

@@ -83,8 +83,8 @@
1 status,
</if>
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
from cs_event_user a inner join cs_event b on a.event_id=b.id inner join cs_equipment_delivery c on b.device_id=c.id 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,d.name lineName
from cs_event_user a inner join cs_event b on a.event_id=b.id 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
and b.process=c.process
<if test="csEventUserQueryPage!=null and csEventUserQueryPage.endTime != null and csEventUserQueryPage.endTime !=''">
AND DATE(b.start_time) &lt;= DATE(#{csEventUserQueryPage.endTime})