From 36988fbbb4ac35884fdb0630a4e7ce67751e6315 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 13 Jan 2022 14:36:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E6=97=B6=E5=88=9B=E5=BB=BA=E4=BA=BA=E5=8F=98?= =?UTF-8?q?=E4=BA=86=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1009528 --user=刘瑞斌 【接口测试】github#9217,场景创建人会自动修改 https://www.tapd.cn/55049933/s/1091319 Closes #9217 --- .../java/io/metersphere/api/service/ApiAutomationService.java | 1 + backend/src/main/java/io/metersphere/service/ProjectService.java | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java index 354b977f24..37bec27ddd 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -353,6 +353,7 @@ public class ApiAutomationService { deleteUpdateBodyFile(scenario, beforeScenario); List useUrl = this.parseUrl(scenario); scenario.setUseUrl(JSONArray.toJSONString(useUrl)); + scenario.setCreateUser(null); apiScenarioMapper.updateByPrimaryKeySelective(scenario); apiScenarioReferenceIdService.saveByApiScenario(scenario); extScheduleMapper.updateNameByResourceID(request.getId(), request.getName());// 修改场景name,同步到修改首页定时任务 diff --git a/backend/src/main/java/io/metersphere/service/ProjectService.java b/backend/src/main/java/io/metersphere/service/ProjectService.java index 8acaea6d4e..084cf10ef3 100644 --- a/backend/src/main/java/io/metersphere/service/ProjectService.java +++ b/backend/src/main/java/io/metersphere/service/ProjectService.java @@ -306,6 +306,7 @@ public class ProjectService { this.checkProjectTcpPort(project); project.setCreateTime(null); + project.setCreateUser(null); project.setUpdateTime(System.currentTimeMillis()); checkProjectExist(project); if (BooleanUtils.isTrue(project.getCustomNum())) {