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 c57a277dea
commit e1df5d0bb4
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.setUpdateTime(System.currentTimeMillis());
module.setProjectId(projectId);
module.setCreateUser(SessionUtils.getUserId());
apiModuleMapper.insert(module);
return module;
} else {

View File

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