@@ -14,9 +14,13 @@ public class QueryWarningListRequest implements Serializable { | |||
private static final long serialVersionUID = 1L; | |||
@ApiModelProperty(value = "租户Id",hidden = true) | |||
@ApiModelProperty(value = "租户Id", hidden = true) | |||
private Integer tenantId; | |||
@ApiModelProperty(value = "对应任务的应急类型: 0:巡检任务应急记录 1:应急任务应急记录") | |||
private Integer flag; | |||
@ApiModelProperty(value = "预警状态: 0:全部;1:待确认;2:确认;3:忽略;") | |||
private Integer status; | |||
} |
@@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||
<where> | |||
<if test="1 == 1"> and mark = 1 </if> | |||
<if test="tenantId != null "> and tenant_id = #{tenantId} </if> | |||
<if test="flag != null "> and flag = #{flag}</if> | |||
<if test="status != null and status != 0 "> and status = #{status}</if> | |||
</where> | |||
order by create_time desc |