From f27f6dee53b77b66730030e60c362f007666343e Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 12 May 2022 16:07:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20jar=E5=8C=85=E7=AE=A1=E7=90=86=E9=87=8D?= =?UTF-8?q?=E5=90=8D=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013124 --user=陈建星 【项目设置】文件管理-上传jar包,名称校验有问题 https://www.tapd.cn/55049933/s/1157010 --- .../base/mapper/ext/ExtJarConfigMapper.java | 2 ++ .../base/mapper/ext/ExtJarConfigMapper.xml | 13 +++++++++++ .../controller/request/JarConfigRequest.java | 1 + .../metersphere/service/JarConfigService.java | 22 +++++++++---------- .../resources/i18n/messages_en_US.properties | 1 + .../resources/i18n/messages_zh_CN.properties | 1 + .../resources/i18n/messages_zh_TW.properties | 1 + 7 files changed, 30 insertions(+), 11 deletions(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtJarConfigMapper.java b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtJarConfigMapper.java index 464ca8c4e9..47af69e1cd 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtJarConfigMapper.java +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtJarConfigMapper.java @@ -8,4 +8,6 @@ import java.util.List; public interface ExtJarConfigMapper { List list(@Param("request") JarConfigRequest request); + + int checkExist(@Param("request") JarConfigRequest request); } diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtJarConfigMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtJarConfigMapper.xml index d6bf8d53fd..518d84edd9 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtJarConfigMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtJarConfigMapper.xml @@ -1,6 +1,19 @@ +