From 2e13fb0c6071119d955ee2345e381fd0c165bda4 Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Tue, 04 Nov 2025 19:40:07 +0800
Subject: [PATCH] 2025-11-4 zwy 增加机场静音模式属性的修改,机场上报result为0,修改成功,但是状态上报的没有变化,未生效,重启机场也没改变。

---
 ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml b/ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml
index f7022d2..ea973ec 100644
--- a/ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml
+++ b/ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml
@@ -4,7 +4,7 @@
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.ard.work.mapper.ArdServerInfoMapper">
     
-    <resultMap type="ArdServerInfo" id="ArdServerManagementResult">
+    <resultMap type="ArdServerInfo" id="ArdServerInfoResult">
         <result property="id"    column="id"    />
         <result property="serverName"    column="server_name"    />
         <result property="host"    column="host"    />
@@ -19,6 +19,23 @@
         <result property="deptId"    column="dept_id"    />
         <result property="serverStatus"    column="server_status"    />
     </resultMap>
+
+    <sql id="selectArdServerInfoVoNo">
+        select id,
+               server_name,
+               host,
+               tcp_port,
+               http_port,
+               access_key_id,
+               access_key_secret,
+               longitude,
+               latitude,
+               altitude,
+               user_id,
+               dept_id,
+               server_status
+        from ard_server_info
+    </sql>
 
     <sql id="selectArdServerInfoVo">
         select c.id,
@@ -43,7 +60,7 @@
         <include refid="selectArdServerInfoVo"/>
         <where>
             <if test="id != null and id != ''"> and c.id = #{id}</if>
-            <if test="serverName != null and serverName != ''"> and server_name like c.concat('%', #{serverName}, '%')</if>
+            <if test="serverName != null and serverName != ''"> and c.server_name like concat('%', #{serverName}, '%')</if>
             <if test="accessKeyId != null and accessKeyId != ''"> and c.access_key_id = #{accessKeyId}</if>
             <if test="accessKeySecret != null and accessKeySecret != ''"> and c.access_key_secret = #{accessKeySecret}</if>
             <if test="serverStatus != null and serverStatus != ''"> and c.server_status = #{serverStatus}</if>
@@ -113,6 +130,14 @@
         where id = #{id}
     </update>
 
+    <update id="updateServerStatus">
+        update ard_server_info
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="status != null">server_status = #{status},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
     <delete id="deleteArdServerInfoById" parameterType="String">
         delete from ard_server_info where id = #{id}
     </delete>

--
Gitblit v1.9.3