From dd81d932a833209ec2067f7179f7dd1ae97b2d56 Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: Thu, 16 Oct 2025 14:39:24 +0800
Subject: [PATCH] 优化
---
ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml b/ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml
index f7022d2..6029346 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" />
@@ -113,6 +113,14 @@
where id = #{id}
</update>
+ <update id="updateServerStatus" parameterType="String">
+ update ard_server_info
+ <trim prefix="SET" suffixOverrides=",">
+ <if test="serverStatus != null">server_status = #{serverStatus},</if>
+ </trim>
+ where id = #{id}
+ </update>
+
<delete id="deleteArdServerInfoById" parameterType="String">
delete from ard_server_info where id = #{id}
</delete>
--
Gitblit v1.9.3