update 优化 SysMenu 的 selectObjs 查询

This commit is contained in:
疯狂的狮子Li 2025-09-04 17:38:46 +08:00
parent 61a4b96831
commit 0d994c97b9

View File

@ -161,6 +161,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
});
}
return baseMapper.selectObjs(new LambdaQueryWrapper<SysMenu>()
.select(SysMenu::getMenuId)
.in(SysMenu::getMenuId, menuIds)
.notIn(CollUtil.isNotEmpty(parentIds), SysMenu::getMenuId, parentIds), x -> {
return Convert.toLong(x);