fix: 78639

体系搜索--弹窗中缺少体系结构查询字段
This commit is contained in:
2023-11-27 14:50:00 +08:00
parent 4684ec8dbc
commit bc654c5df7
@@ -228,11 +228,20 @@ public class SarMenuStandardNewServiceNewImpl extends ServiceImpl<SarMenuStandar
// 找到menuId对应的节点
SarMenuStandard targetNode = SarMenuStandard.findNodeById(sarMenuStandard, menuId);
// 收集目标节点及其所有子节点的ID
List<String> childIds = new ArrayList<>();
targetNode.collectChildIds(childIds);
standSystemDTO.setMenuIdList(childIds);
// 找到standSystemId对应的节点
String standSystemId = standSystemDTO.getStandSystemId();
if (StrUtil.isNotBlank(standSystemId)) {
SarMenuStandard findNode = SarMenuStandard.findNodeById(sarMenuStandard, standSystemDTO.getStandSystemId());
// 收集目标节点及其所有子节点的ID
List<String> standSystemChildIds = new ArrayList<>();
findNode.collectChildIds(standSystemChildIds);
standSystemDTO.setStandSystemIdList(standSystemChildIds);
}
if (!select) {
standSystemDTO.setSelectIdList(targetNode.getGbStandIdList());
}