From 94d3c0db0785fc94978762f339723cf7cfb6f6ba Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Sat, 30 Mar 2024 16:49:43 +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=E8=A6=86?= =?UTF-8?q?=E7=9B=96=E6=95=B0=E6=8D=AE=EF=BC=8C=E6=9B=B4=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=B2=A1=E6=9C=89=E4=BF=AE=E6=94=B9=E7=9A=84=E7=BC=BA?= =?UTF-8?q?=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/1484565 --- .../service/definition/ApiDefinitionImportUtilService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 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 91f45cc8ac..9957b63e6e 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 @@ -298,13 +298,13 @@ public class ApiDefinitionImportUtilService { List operationLogs = new ArrayList<>(); List updateRequestData = apiDetailWithDataUpdate.getUpdateRequestData(); updateRequestData.forEach(t -> { + ApiDefinition apiDefinition = new ApiDefinition(); if (CollectionUtils.isNotEmpty(updateModuleLists) && updateModuleLists.contains(t.getId())) { - ApiDefinition apiDefinition = new ApiDefinition(); apiDefinition.setId(t.getId()); apiDefinition.setUpdateUser(request.getUserId()); - apiDefinition.setUpdateTime(System.currentTimeMillis()); - apiMapper.updateByPrimaryKeySelective(apiDefinition); } + apiDefinition.setUpdateTime(System.currentTimeMillis()); + apiMapper.updateByPrimaryKeySelective(apiDefinition); //更新blob数据 ApiDefinitionBlob apiDefinitionBlob = new ApiDefinitionBlob(); apiDefinitionBlob.setId(t.getId());