Browse Source

fix: 菜单排序

master
李永德 1 year ago
parent
commit
df42f09048
  1. 2
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/menu/impl/SysMenuServiceImpl.java

2
lms/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/menu/impl/SysMenuServiceImpl.java

@ -344,7 +344,7 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
} else { } else {
queryWrapper = new QueryWrapper<SysMenu>().isNull("pid"); queryWrapper = new QueryWrapper<SysMenu>().isNull("pid");
} }
return baseMapper.selectList(queryWrapper); return baseMapper.selectList(queryWrapper.orderByAsc("menu_sort"));
} }
@Override @Override

Loading…
Cancel
Save