rev:菜单系统type不一致问题

This commit is contained in:
zhangzhiqiang
2023-05-06 14:37:02 +08:00
parent f3f0573970
commit 8df349f377
3 changed files with 6 additions and 2 deletions

View File

@@ -58,7 +58,7 @@
sys_menu
WHERE
system_type = #{systemType}
and type != '4'
and type != '4' and path is not null and path <![CDATA[<>]]> ''
and
menu_id IN (
SELECT

View File

@@ -30,6 +30,9 @@ public class MenuDto extends BaseDTO implements Serializable {
private List<MenuDto> children;
/**
* 1是系统2是目录3是菜单 4权限
*/
private String type;
private String permission;

View File

@@ -416,7 +416,8 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
if (!menuDTO.getIframe()) {
if (pid.equals(menuDTO.getPid())) {
menuVo.setComponent(StrUtil.isEmpty(menuDTO.getComponent()) ? "Layout" : menuDTO.getComponent());
} else if (!pid.equals(menuDTO.getPid()) && "0".equals(menuDTO.getType())) {
//"2".equals(menuDTO.getType() 判断是不是目录
} else if (!pid.equals(menuDTO.getPid()) && "2".equals(menuDTO.getType())) {
menuVo.setComponent(StrUtil.isEmpty(menuDTO.getComponent()) ? "ParentView" : menuDTO.getComponent());
} else if (!StrUtil.isEmpty(menuDTO.getComponent())) {