From 1f05f82dbbfa9189c4aff831a69c3f534964e669 Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Thu, 30 Oct 2025 11:05:20 +0800
Subject: [PATCH] 1.增加查询服务器管理列表-无权限校验接口。 2.解决同步信息时获取用户信息异常bug。
---
ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml b/ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml
index 385990f..1055bc2 100644
--- a/ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml
+++ b/ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml
@@ -20,6 +20,23 @@
<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,
c.server_name,
@@ -54,6 +71,18 @@
${params.dataScope}
</where>
</select>
+
+ <select id="getServerLsNoPermission" parameterType="ArdServerInfo" resultMap="ArdServerInfoResult">
+ <include refid="selectArdServerInfoVoNo"/>
+ <where>
+ <if test="id != null and id != ''"> and id = #{id}</if>
+ <if test="serverName != null and serverName != ''"> and server_name like concat('%', #{serverName}, '%')</if>
+ <if test="accessKeyId != null and accessKeyId != ''"> and access_key_id = #{accessKeyId}</if>
+ <if test="accessKeySecret != null and accessKeySecret != ''"> and access_key_secret = #{accessKeySecret}</if>
+ <if test="serverStatus != null and serverStatus != ''"> and server_status = #{serverStatus}</if>
+ <if test="deptId != null and deptId != 0">and dept_id = #{deptId}</if>
+ </where>
+ </select>
<select id="selectArdServerInfoById" parameterType="String" resultMap="ArdServerInfoResult">
<include refid="selectArdServerInfoVo"/>
--
Gitblit v1.9.3