fix(接口测试): 修复不同模块同名的场景导入失败的缺陷

--bug=1027234 --user=王孝刚 【接口测试】场景导入ms格式失败
https://www.tapd.cn/55049933/s/1385530
This commit is contained in:
wxg0103 2023-06-25 17:11:19 +08:00 committed by fit2-zhao
parent 7ab5cf374a
commit ac8d8c32d9

View File

@ -534,7 +534,7 @@ public class ApiScenarioModuleService extends NodeTreeService<ApiScenarioModuleD
if (!CollectionUtils.isEmpty(repeatApiScenarioWithBLOBs)) {
String chooseModuleParentId = getChooseModuleParentId(chooseModule);
String chooseModulePath = getChooseModulePath(idPathMap, chooseModule, chooseModuleParentId);
nameModuleMap = optionData.stream().collect(Collectors.toMap(t -> t.getName() + chooseModulePath, scenario -> scenario));
nameModuleMap = optionData.stream().collect(Collectors.toMap(t -> t.getName() +t.getModulePath() + chooseModulePath, scenario -> scenario));
repeatDataMap = repeatApiScenarioWithBLOBs.stream().filter(t -> t.getApiScenarioModuleId().equals(chooseModuleId)).collect(Collectors.toMap(t -> t.getName() + t.getModulePath(), scenario -> scenario));
}
} else {