feat(功能用例): 脑图不查询空白节点

This commit is contained in:
guoyuqi 2024-06-20 18:58:19 +08:00 committed by Craftsman
parent a2479398eb
commit 29eb6ca709
2 changed files with 1 additions and 6 deletions

View File

@ -147,13 +147,8 @@ public class FunctionalCaseMinderService {
List<String> fieldIds = getFieldIds(request);
List<FunctionalCaseCustomField> caseCustomFieldList = extFunctionalCaseMapper.getCaseCustomFieldList(request, deleted, fieldIds);
Map<String, String> priorityMap = caseCustomFieldList.stream().collect(Collectors.toMap(FunctionalCaseCustomField::getCaseId, FunctionalCaseCustomField::getValue));
List<FunctionalMinderTreeDTO> functionalMinderTreeDTOS = buildAdditionalData(request.getModuleId());
if (CollectionUtils.isNotEmpty(functionalMinderTreeDTOS)) {
list.addAll(functionalMinderTreeDTOS);
}
//构造父子级数据
buildList(functionalCaseMindDTOList, list, priorityMap);
return list;

View File

@ -149,7 +149,7 @@ public class FunctionalCaseMinderControllerTest extends BaseTest {
resultHolder = JSON.parseObject(contentAsString, ResultHolder.class);
List<FunctionalMinderTreeDTO> baseTreeNodes = JSON.parseArray(JSON.toJSONString(resultHolder.getData()), FunctionalMinderTreeDTO.class);
Assertions.assertNotNull(baseTreeNodes);
Assertions.assertEquals(3, baseTreeNodes.size());
Assertions.assertEquals(2, baseTreeNodes.size());
}
@Test