From 6f80635f6c23adff4e9fa79378849f28d1d441ab Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 19 Apr 2024 14:32:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E5=AF=BC=E5=85=A5=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9C=89=E6=9B=B4=E6=96=B0=E7=9A=84=EF=BC=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4=E7=BE=8E=E6=9C=89=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1037842 --user=王孝刚 【接口测试】swagger导入接口-覆盖,接口参数被更新后,接口的更新时间没变 https://www.tapd.cn/55049933/s/1502052 --- .../service/definition/ApiDefinitionImportUtilService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionImportUtilService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionImportUtilService.java index 46b95c485f..ffa973bc50 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionImportUtilService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionImportUtilService.java @@ -394,10 +394,8 @@ public class ApiDefinitionImportUtilService { private static void updateApiRequest(ImportRequest request, List updateRequestData, List updateModuleLists, ApiDefinitionMapper apiMapper, ApiDefinitionBlobMapper apiBlobMapper) { updateRequestData.forEach(t -> { ApiDefinition apiDefinition = new ApiDefinition(); - if (CollectionUtils.isNotEmpty(updateModuleLists) && updateModuleLists.contains(t.getId())) { - apiDefinition.setId(t.getId()); - apiDefinition.setUpdateUser(request.getUserId()); - } + apiDefinition.setId(t.getId()); + apiDefinition.setUpdateUser(request.getUserId()); apiDefinition.setUpdateTime(System.currentTimeMillis()); apiMapper.updateByPrimaryKeySelective(apiDefinition); //更新blob数据