DVR界面添加条件筛选
This commit is contained in:
@@ -6,7 +6,6 @@ import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -46,7 +45,4 @@ public class CsEventUserQueryPage extends CsEventUserQueryParam{
|
||||
|
||||
@ApiModelProperty(value = "测点id")
|
||||
private String lineId;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -45,10 +45,14 @@ public class CsEventUserQueryParam {
|
||||
|
||||
private String level;
|
||||
@ApiModelProperty(value="起始时间")
|
||||
// @NotNull(message="起始时间不能为空!")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(value="结束时间")
|
||||
// @NotNull(message="结束时间不能为空!")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(value = "事件类型 Evt_Sys_DipStr:电压暂降 Evt_Sys_SwlStr:电压暂升 Evt_Sys_IntrStr:电压中断")
|
||||
private String eventType;
|
||||
|
||||
@ApiModelProperty(value = "位置 grid:电网侧 load:负载侧")
|
||||
private String location;
|
||||
}
|
||||
@@ -140,7 +140,6 @@
|
||||
AND DATE(b.start_time) >= DATE(#{csEventUserQueryPage.startTime})
|
||||
</if>
|
||||
<if test="csEventUserQueryPage!=null and csEventUserQueryPage.target != null and csEventUserQueryPage.target.size()>0">
|
||||
|
||||
and b.tag in
|
||||
<foreach collection="csEventUserQueryPage.target" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
@@ -162,6 +161,14 @@
|
||||
<if test="csEventUserQueryPage!=null and csEventUserQueryPage.level != null and csEventUserQueryPage.level !=''">
|
||||
AND b.level = #{ csEventUserQueryPage.level}
|
||||
</if>
|
||||
|
||||
<if test="csEventUserQueryPage!=null and csEventUserQueryPage.eventType != null and csEventUserQueryPage.eventType !=''">
|
||||
AND b.tag = #{csEventUserQueryPage.eventType}
|
||||
</if>
|
||||
|
||||
<if test="csEventUserQueryPage!=null and csEventUserQueryPage.location != null and csEventUserQueryPage.location !=''">
|
||||
AND b.location = #{csEventUserQueryPage.location}
|
||||
</if>
|
||||
order by b.start_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user