feat(功能用例): 脑图不查询空白节点
This commit is contained in:
parent
a2479398eb
commit
29eb6ca709
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue