fix(接口测试): 修复将模块移动到根目录下再次导入接口无法识别根目录模块问题
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001018178 --user=郭雨琦
This commit is contained in:
parent
dcbced09e9
commit
dad791a419
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue