【7.0.2】更新菜单加一列

pull/12/head^2
fengshuonan 2021-03-23 22:06:24 +08:00
parent 9367bc4746
commit 5871d812c3
3 changed files with 8 additions and 1 deletions

View File

@ -149,6 +149,12 @@ public class SysMenu extends BaseEntity implements AbstractTreeNode {
@TableField("antdv_link_url")
private String antdvLinkUrl;
/**
* url
*/
@TableField("antdv_uid_url")
private String antdvUidUrl;
/**
* Y-N-
*/

View File

@ -93,7 +93,7 @@ public class AntdMenusFactory {
antdvMenuItem.setPath(sysMenu.getAntdvRouter());
antdvMenuItem.setComponent(sysMenu.getAntdvComponent());
antdvMenuItem.setHide(YesOrNotEnum.N.getCode().equals(sysMenu.getVisible()));
antdvMenuItem.setUid(null);
antdvMenuItem.setUid(sysMenu.getAntdvUidUrl());
if (ObjectUtil.isNotEmpty(sysMenu.getChildren())) {
antdvMenuItem.setChildren(doModelTransfer(sysMenu.getChildren()));
}

View File

@ -281,6 +281,7 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
SysMenu::getAntdvRouter,
SysMenu::getAntdvComponent,
SysMenu::getVisible,
SysMenu::getAntdvUidUrl,
SysMenu::getMenuId,
SysMenu::getMenuParentId);
wrapper.eq(SysMenu::getStatusFlag, StatusEnum.ENABLE.getCode());