mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2026-01-15 03:36:06 +08:00
update 优化 兼容path大写开头搜索
This commit is contained in:
@@ -374,7 +374,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
|
||||
List<SysMenu> sysMenuList = baseMapper.selectList(
|
||||
new LambdaQueryWrapper<SysMenu>()
|
||||
.in(SysMenu::getMenuType, SystemConstants.TYPE_DIR, SystemConstants.TYPE_MENU)
|
||||
.eq(SysMenu::getPath, path));
|
||||
.eq(SysMenu::getPath, path).or().eq(SysMenu::getPath, routeName));
|
||||
for (SysMenu sysMenu : sysMenuList) {
|
||||
if (sysMenu.getMenuId() != menuId) {
|
||||
Long dbParentId = sysMenu.getParentId();
|
||||
|
||||
Reference in New Issue
Block a user