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

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

View File

@ -539,6 +539,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()));