From 377f8bd94743a102b321b313d7e0824b39efa274 Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期六, 16 三月 2024 17:40:24 +0800
Subject: [PATCH] app查询光电修改提交

---
 ard-work/src/main/resources/mapper/alarm/ArdAlarmAccessMapper.xml |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/ard-work/src/main/resources/mapper/alarm/ArdAlarmAccessMapper.xml b/ard-work/src/main/resources/mapper/alarm/ArdAlarmAccessMapper.xml
index 5bcf387..8786af4 100644
--- a/ard-work/src/main/resources/mapper/alarm/ArdAlarmAccessMapper.xml
+++ b/ard-work/src/main/resources/mapper/alarm/ArdAlarmAccessMapper.xml
@@ -3,7 +3,7 @@
 PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.ruoyi.alarm.access.mapper.ArdAlarmAccessMapper">
-    
+
     <resultMap type="ArdAlarmAccess" id="ArdAlarmAccessResult">
         <result property="id"    column="id"    />
         <result property="serialNo"    column="serial_no"    />
@@ -32,6 +32,9 @@
     <select id="selectArdAlarmAccessList" parameterType="ArdAlarmAccess" resultMap="ArdAlarmAccessResult">
         <include refid="selectArdAlarmAccessVo"/>
         <where>
+            <if test="acsName!=null and acsName!=''">
+                AND acs_name like concat('%', #{acsName}, '%')
+            </if>
             <if test="params.beginTime != null and params.beginTime != ''"><!-- 寮�濮嬫椂闂存绱� -->
                 AND alarm_time &gt;= to_timestamp(#{params.beginTime},'yyyy-MM-DD HH24:MI:ss')
             </if>
@@ -41,12 +44,12 @@
         </where>
         order by alarm_time desc
     </select>
-    
+
     <select id="selectArdAlarmAccessById" parameterType="String" resultMap="ArdAlarmAccessResult">
         <include refid="selectArdAlarmAccessVo"/>
         where id = #{id}
     </select>
-        
+
     <insert id="insertArdAlarmAccess" parameterType="ArdAlarmAccess">
         insert into ard_alarm_access
         <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -120,7 +123,7 @@
     </delete>
 
     <delete id="deleteArdAlarmAccessByIds" parameterType="String">
-        delete from ard_alarm_access where id in 
+        delete from ard_alarm_access where id in
         <foreach item="id" collection="array" open="(" separator="," close=")">
             #{id}
         </foreach>
@@ -180,4 +183,4 @@
         from ard_alarm_access
         where alarm_time &gt;= #{start} and  alarm_time &lt;= #{end}  group by date order by date
     </select>
-</mapper>
\ No newline at end of file
+</mapper>

--
Gitblit v1.9.3