diff --git a/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java b/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java index 1e7cd42819..0d04fa8af5 100644 --- a/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java +++ b/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java @@ -568,6 +568,7 @@ public class PerformanceTestService { copy.setUpdateTime(System.currentTimeMillis()); copy.setStatus(APITestStatus.Saved.name()); copy.setUserId(Objects.requireNonNull(SessionUtils.getUser()).getId()); + copy.setCreateUser(Objects.requireNonNull(SessionUtils.getUser()).getId()); copy.setNum(getNextNum(copy.getProjectId())); loadTestMapper.insert(copy); // copy test file