11.9预警信息的查询修改

dev
xiaohuo 8 months ago
parent f23fd9975b
commit 88ffead7ba
  1. 2
      ALOps_sys_backend/alops-system/src/main/java/com/alops/system/domain/dto/AlertDto.java
  2. 9
      ALOps_sys_backend/alops-system/src/main/resources/mapper/system/AlertMessageMapper.xml

@ -12,4 +12,6 @@ public class AlertDto {
private String status;
private String location;
private String inCharge;
private String name;
private String equNumber;
}

@ -82,6 +82,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!-- 设备管理员精确匹配 -->
<if test="inCharge != null and inCharge != ''"> AND eb.in_charge = #{inCharge} </if>
<!-- ✅ 设备名称模糊匹配 -->
<if test="name != null and name != ''">
AND eb.name LIKE CONCAT('%', #{name}, '%')
</if>
<!-- ✅ 设备编号精准匹配 -->
<if test="equNumber != null and equNumber != ''">
AND eb.equ_number = #{equNumber}
</if>
</where>
<!-- 按 batch 从大到小排序 -->
ORDER BY am.batch DESC

Loading…
Cancel
Save