增加查询条件

wushunjie
杜函宇 8 months ago
parent 88699e7605
commit 7771faa141

@ -100,4 +100,10 @@ public class AlarmFindRequest implements Serializable {
*/
@ApiModelProperty(value = "紧急系数最大值")
private Double aiNumMax;
/**
* 1ai120Id 2ai120Id
*/
@ApiModelProperty(value = "前端选择框 1查询ai120Id不为空的 2查询ai120Id为空的")
private Integer selectIsNull;
}

@ -112,5 +112,11 @@ public class EventPageRequest implements Serializable {
private String alarmUnitTelephone;
/**
* 1ai110Id 2ai110Id
*/
@ApiModelProperty(value = "前端选择框 1查询ai110Id不为空的 2查询ai110Id为空的")
private Integer selectIsNull;
}

@ -165,6 +165,12 @@
<if test="req.aiNumMax != null ">
and ai_num &lt;= #{req.aiNumMax}
</if>
<if test="req.selectIsNull == 1 ">
and ai_120_id is not null and ai_120_id != ''
</if>
<if test="req.selectIsNull == 2 ">
and ai_120_id is null or ai_120_id = ''
</if>
</where>
order by update_time desc
</select>

@ -105,6 +105,12 @@
<if test="event.alarmUnitTelephone != null and event.alarmUnitTelephone !=''">
AND alarm_unit_telephone LIKE CONCAT('%', #{event.alarmUnitTelephone}, '%')
</if>
<if test="req.selectIsNull == 1 ">
and ai_110_id is not null and ai_110_id != ''
</if>
<if test="req.selectIsNull == 2 ">
and ai_110_id is null or ai_110_id = ''
</if>
</where>
order by event_date_time desc
</select>

Loading…
Cancel
Save