From 27b3ffa1dcf89f4dc5fdd13a96f7c985d0eba68d Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: Thu, 30 Oct 2025 11:19:00 +0800
Subject: [PATCH] oss增加按【通过文件扩展名获取MIME类型】存储对象
---
ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml | 39 ++++++++++++++++++++++++++++++++++++++-
1 files changed, 38 insertions(+), 1 deletions(-)
diff --git a/ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml b/ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml
index a162d73..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,
@@ -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>
@@ -52,6 +69,18 @@
</if>
<!-- 数据范围过滤 -->
${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>
@@ -113,6 +142,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