refactor(测试计划): 调整根节点的查询方式

This commit is contained in:
guoyuqi 2024-07-29 19:59:10 +08:00 committed by Craftsman
parent dba7e10a0d
commit 335c2ca0c8
1 changed files with 6 additions and 1 deletions

View File

@ -1197,7 +1197,12 @@ public class FunctionalCaseMinderService {
public List<FunctionalMinderTreeDTO> getPlanMindFunctionalCase(FunctionalCasePlanMindRequest request, boolean deleted) {
List<FunctionalMinderTreeDTO> list = new ArrayList<>();
//查出当前模块下的所有用例
//查出当前模块下的所有用例,模块可能是根节点这里做跨项目的处理
if (request.getModuleId().contains("root")) {
int i = request.getModuleId().indexOf("_");
String substring = request.getModuleId().substring(i+1);
request.setModuleId(substring);
}
List<FunctionalCaseMindDTO> functionalCaseMindDTOList = extFunctionalCaseMapper.getMinderTestPlanList(request, deleted);
List<String> fieldIds = getFieldIds(request);
List<FunctionalCaseCustomField> caseCustomFieldList = extFunctionalCaseMapper.getCaseCustomFieldList(request, deleted, fieldIds);