mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2026-01-15 19:56:04 +08:00
update 优化 添加菜单路由地址和名称的校验规则
This commit is contained in:
@@ -374,10 +374,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
|
||||
List<SysMenu> sysMenuList = baseMapper.selectList(
|
||||
new LambdaQueryWrapper<SysMenu>()
|
||||
.in(SysMenu::getMenuType, SystemConstants.TYPE_DIR, SystemConstants.TYPE_MENU)
|
||||
.and(w ->
|
||||
w.eq(SysMenu::getPath, path)
|
||||
.or().eq(SysMenu::getRouteName, path)
|
||||
.or().eq(SysMenu::getRouteName, routeName)));
|
||||
.eq(SysMenu::getPath, path));
|
||||
for (SysMenu sysMenu : sysMenuList) {
|
||||
if (sysMenu.getMenuId() != menuId) {
|
||||
Long dbParentId = sysMenu.getParentId();
|
||||
|
||||
Reference in New Issue
Block a user