fix(接口测试): 修复将模块移动到根目录下再次导入接口无法识别根目录模块问题

https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001018178
--user=郭雨琦
This commit is contained in:
guoyuqi 2022-10-17 11:03:12 +08:00 committed by xiaomeinvG
parent dcbced09e9
commit dad791a419
1 changed files with 1 additions and 1 deletions

View File

@ -1617,7 +1617,7 @@ public class ApiModuleService extends NodeTreeService<ApiModuleDTO> {
int i = 0;
Map<String, List<ApiModule>> idModuleMap = new HashMap<>();
for (ApiModuleDTO apiModuleDTO : nodeTreeByProjectId) {
if (StringUtils.isBlank(apiModuleDTO.getParentId())) {
if (StringUtils.isBlank(apiModuleDTO.getParentId()) || StringUtils.equals(apiModuleDTO.getParentId(),"0")) {
apiModuleDTO.setParentId(PropertyConstant.ROOT);
}
String parentModulePath = parentModulePathMap.get(apiModuleDTO.getParentId());