Browse Source

添加单选框代码

gao.qiang 1 year ago
parent
commit
85cc24722e

+ 2 - 0
business-service/src/main/java/com/ozs/service/entity/vo/MsgAlarmVo.java

@@ -93,4 +93,6 @@ public class MsgAlarmVo extends PageVo implements Serializable {
      * 解除报警类型1实报2误报
      */
     private Integer releasedType;
+
+    private List<Long> ids;
 }

+ 6 - 0
business-service/src/main/resources/mapper/service/MsgAlarmMapper.xml

@@ -321,6 +321,12 @@
             <if test="endMile != null and endMile != 0">
                 and b.end_mile &lt;=#{endMile}
             </if>
+            <if test="ids != null and ids.size>0">
+                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=")">