From ab918f0c945989a0847794b16c7f0b33856388f4 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 16 Jun 2021 17:09:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E5=88=9B=E5=BB=BA=E4=BA=BA=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/track/service/TestCaseService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main/java/io/metersphere/track/service/TestCaseService.java b/backend/src/main/java/io/metersphere/track/service/TestCaseService.java index 67027f5809..5f7aec2809 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestCaseService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestCaseService.java @@ -540,6 +540,7 @@ public class TestCaseService { num.set(getNextNum(projectId) + testCases.size()); testCases.forEach(testcase -> { testcase.setId(UUID.randomUUID().toString()); + testcase.setCreateUser(SessionUtils.getUserId()); testcase.setCreateTime(System.currentTimeMillis()); testcase.setUpdateTime(System.currentTimeMillis()); testcase.setNodeId(nodePathMap.get(testcase.getNodePath()));