Browse Source

Merge branch 'develop' of gitadmin/tuoheng_lc into release

tags/v1.2.0^2
wanjing 1 year ago
parent
commit
1c18009624
2 changed files with 6 additions and 1 deletions
  1. +5
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/entity/request/warning/QueryWarningListRequest.java
  2. +1
    -0
      tuoheng-admin/src/main/resources/mapper/WarningMapper.xml

+ 5
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/entity/request/warning/QueryWarningListRequest.java View File

@@ -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;
}

+ 1
- 0
tuoheng-admin/src/main/resources/mapper/WarningMapper.xml View File

@@ -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

Loading…
Cancel
Save