Commit 4809cf80 authored by chenzhao's avatar chenzhao

2547 增加灾情事件类型匹配规则 xml中同步增加模糊查询 54-56行

parent e11a6139
......@@ -30,7 +30,10 @@ public class RequestData {
@ApiModelProperty(value = "是否只显示24小时内警情")
private Boolean whether24=false;
/*2547 增加灾情事件类型匹配规则 xml中同步增加模糊查询 54-56行 陈召 2021-09-24 开始*/
@ApiModelProperty(value = "灾情事件类型模糊匹配")
private String alertType;
/*2547 增加灾情事件类型匹配规则 xml中同步增加模糊查询 54-56行 陈召 2021-09-24 结束*/
@ApiModelProperty(value = "灾情地址模糊匹配")
private String address;
......
......@@ -51,6 +51,9 @@
<if test='par.address!=null and par.address!="" '>
and a.address like CONCAT('%',#{par.address},'%')
</if>
<if test='par.alertType!=null and par.alertType!="" '>
and a.alert_type like CONCAT('%',#{par.alertType},'%')
</if>
<if test='par.whether24!=false'>
and a.call_time &gt;= (NOW() - interval 24 hour)
</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment