@@ -4,6 +4,7 @@ import com.ozs.common.vo.PageVo;
import lombok.Data;
import java.io.Serializable;
+import java.util.List;
/**
* 统计管理页面强求参数
@@ -33,4 +34,6 @@ public class AlarmStatisticResVo extends PageVo implements Serializable {
* 灾害类型
*/
private String alarmType;
+
+ private List<Long> ids;
}
@@ -143,6 +143,12 @@
<if test="alarmType != null and alarmType != ''">
and UPPER(a.alarm_type) like UPPER(CONCAT('%',#{alarmType},'%'))
</if>
+ <if test="ids != null">
+ and a.id in
+ <foreach item="items" collection="ids" separator="," open="(" close=")" index="">
+ #{items}
+ </foreach>
+ </if>
<if test="!dsFlay">
and
<trim prefix="(" prefixOverrides="or" suffix=")">