fix: 测试用例导入创建人为空

This commit is contained in:
chenjianxing 2021-06-16 17:09:05 +08:00 committed by jianxing
parent 75cb6b3527
commit ab918f0c94
1 changed files with 1 additions and 0 deletions

View File

@ -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()));