Commit 437670cc authored by tangwei's avatar tangwei

修改bug

parent c50a27fd
...@@ -38,8 +38,11 @@ public class RequestData { ...@@ -38,8 +38,11 @@ public class RequestData {
private String address; private String address;
@ApiModelProperty(value = "灾情状态") @ApiModelProperty(value = "灾情状态")
private int status =0; private Integer status ;
@ApiModelProperty(value = "灾情ID") @ApiModelProperty(value = "灾情ID")
private Long alertId ; private Long alertId ;
@ApiModelProperty(value = "类型code")
private String alertTypeCode;
} }
...@@ -55,6 +55,11 @@ ...@@ -55,6 +55,11 @@
and a.address like CONCAT('%',#{par.address},'%') || a.alert_type like CONCAT('%',#{par.address},'%') and a.address like CONCAT('%',#{par.address},'%') || a.alert_type like CONCAT('%',#{par.address},'%')
</if> </if>
<if test='par.alertTypeCode!=null and par.alertTypeCode!="" '>
and a.alert_type_code = #{par.alertTypeCode}
</if>
<if test='par.whether24!=false'> <if test='par.whether24!=false'>
and a.call_time &gt;= (NOW() - interval 24 hour) and a.call_time &gt;= (NOW() - interval 24 hour)
</if> </if>
...@@ -81,6 +86,9 @@ ...@@ -81,6 +86,9 @@
<if test='par.address!=null and par.address!="" '> <if test='par.address!=null and par.address!="" '>
and a.address like CONCAT('%',#{par.address},'%') and a.address like CONCAT('%',#{par.address},'%')
</if> </if>
<if test='par.alertTypeCode!=null and par.alertTypeCode!="" '>
and a.alert_type_code = #{par.alertTypeCode}
</if>
<if test='par.whether24!=false'> <if test='par.whether24!=false'>
and a.call_time &gt;= (NOW() - interval 24 hour) and a.call_time &gt;= (NOW() - interval 24 hour)
</if> </if>
......
...@@ -170,7 +170,10 @@ public class CommandController extends BaseController { ...@@ -170,7 +170,10 @@ public class CommandController extends BaseController {
@GetMapping(value = "history/list") @GetMapping(value = "history/list")
@ApiOperation(httpMethod = "GET", value = "警情列表查询", notes = "警情列表查询") @ApiOperation(httpMethod = "GET", value = "警情列表查询", notes = "警情列表查询")
public ResponseModel<Page<AlertCalledZhDto>> listhistoryPage(Integer pageNum, Integer pageSize,RequestData par) { public ResponseModel<Page<AlertCalledZhDto>> listhistoryPage(Integer pageNum, Integer pageSize,RequestData par) {
par.setStatus(1);
if(par.getStatus()==null){
par.setStatus(1);
}
if (null == pageNum || null == pageSize) { if (null == pageNum || null == pageSize) {
pageNum = 1; pageNum = 1;
pageSize = Integer.MAX_VALUE; pageSize = Integer.MAX_VALUE;
......
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