fix(接口测试): 修复全新安装默认模块创建失败问题

Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
fit2-zhao 2023-03-21 10:39:55 +08:00 committed by fit2-zhao
parent 153111087c
commit 91373a5927
2 changed files with 1 additions and 2 deletions

View File

@ -514,7 +514,6 @@ public class ApiModuleService extends NodeTreeService<ApiModuleDTO> {
module.setCreateTime(System.currentTimeMillis()); module.setCreateTime(System.currentTimeMillis());
module.setUpdateTime(System.currentTimeMillis()); module.setUpdateTime(System.currentTimeMillis());
module.setProjectId(projectId); module.setProjectId(projectId);
module.setCreateUser(SessionUtils.getUserId());
apiModuleMapper.insert(module); apiModuleMapper.insert(module);
return module; return module;
} else { } else {

View File

@ -463,7 +463,7 @@ public class ApiScenarioModuleService extends NodeTreeService<ApiScenarioModuleD
module.setCreateTime(System.currentTimeMillis()); module.setCreateTime(System.currentTimeMillis());
module.setUpdateTime(System.currentTimeMillis()); module.setUpdateTime(System.currentTimeMillis());
module.setProjectId(projects.get(0).getId()); module.setProjectId(projects.get(0).getId());
module.setCreateUser(SessionUtils.getUserId()); module.setCreateUser(projects.get(0).getCreateUser());
apiScenarioModuleMapper.insert(module); apiScenarioModuleMapper.insert(module);
} }
} }