Commit 0a527b4f by fengshuonan

修复顶级菜单查询不到的bug

parent 90bc34d7
......@@ -114,7 +114,7 @@ public class MenuService extends ServiceImpl<MenuMapper, Menu> {
//获取menuId的code
String code = "";
if (menuId != null) {
if (menuId != null && menuId != 0L) {
Menu menu = this.getById(menuId);
code = menu.getCode();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment