|
|
|
@ -7,6 +7,7 @@ import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import org.dromara.common.core.constant.UserConstants;
|
|
|
|
|
import org.dromara.common.core.utils.MapstructUtils;
|
|
|
|
|
import org.dromara.common.core.utils.StreamUtils;
|
|
|
|
@ -26,7 +27,6 @@ import org.dromara.system.mapper.SysRoleMapper;
|
|
|
|
|
import org.dromara.system.mapper.SysRoleMenuMapper;
|
|
|
|
|
import org.dromara.system.mapper.SysTenantPackageMapper;
|
|
|
|
|
import org.dromara.system.service.ISysMenuService;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import java.util.*;
|
|
|
|
@ -169,11 +169,11 @@ public class SysMenuServiceImpl implements ISysMenuService {
|
|
|
|
|
if (tenantPackage.getMenuCheckStrictly()) {
|
|
|
|
|
parentIds = baseMapper.selectObjs(new LambdaQueryWrapper<SysMenu>()
|
|
|
|
|
.select(SysMenu::getParentId)
|
|
|
|
|
.in(SysMenu::getMenuId, menuIds), Convert::toLong);
|
|
|
|
|
.in(SysMenu::getMenuId, menuIds), x -> {return Convert.toLong(x);});
|
|
|
|
|
}
|
|
|
|
|
return baseMapper.selectObjs(new LambdaQueryWrapper<SysMenu>()
|
|
|
|
|
.in(SysMenu::getMenuId, menuIds)
|
|
|
|
|
.notIn(CollUtil.isNotEmpty(parentIds), SysMenu::getMenuId, parentIds), Convert::toLong);
|
|
|
|
|
.notIn(CollUtil.isNotEmpty(parentIds), SysMenu::getMenuId, parentIds), x -> {return Convert.toLong(x);});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|