|
@@ -156,7 +156,7 @@ public class MenuServiceImpl implements MenuService {
|
|
|
throw exception(MENU_PARENT_ERROR);
|
|
|
}
|
|
|
// MenuDO menu = menuMapper.selectById(parentId);
|
|
|
- MenuDO menu = menuMapper.selectOne(new LambdaQueryWrapperX<MenuDO>().eqIfPresent(MenuDO::getParentId,parentId)
|
|
|
+ MenuDO menu = menuMapper.selectOne(new LambdaQueryWrapperX<MenuDO>().eqIfPresent(MenuDO::getId,parentId)
|
|
|
.eqIfPresent(MenuDO::getCategoryId,categoryId));
|
|
|
// 父菜单不存在
|
|
|
if (menu == null) {
|