瀏覽代碼

Merge branch 'develop' of http://192.168.11.14:51037/gitadmin/tuoheng_lc into feature_v1.0

tags/v1.2.0^2
chengwang 1 年之前
父節點
當前提交
c7b1daba6d
共有 2 個檔案被更改,包括 6 行新增1 行删除
  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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存