fix(接口定义): 导入dubbo接口,没有模块信息

--bug=1009160 --user=lyh 【接口定义】导入dubbo接口,没有模块信息
https://www.tapd.cn/55049933/s/1085515
This commit is contained in:
shiziyuan9527 2021-12-22 18:50:21 +08:00 committed by 刘瑞斌
parent 1b3009e693
commit 6033352c62
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,7 @@ public class ApiDefinitionImportUtil {
if (parentModule != null) {
module = apiModuleService.getNewModule(name, projectId, parentModule.getLevel() + 1);
module.setParentId(parentModule.getId());
module.setProtocol(parentModule.getProtocol());
} else {
module = apiModuleService.getNewModule(name, projectId, 1);
}
@ -121,6 +122,7 @@ public class ApiDefinitionImportUtil {
if (parentModule != null) {
module = apiModuleService.getNewModule(name, projectId, parentModule.getLevel() + 1);
module.setParentId(parentModule.getId());
module.setProtocol(parentModule.getProtocol());
} else {
module = apiModuleService.getNewModule(name, projectId, 1);
}