From 2ee9dbc37cbe186e98e5ca458033ba517b981d0d Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Wed, 18 Jun 2025 16:24:37 +0800
Subject: [PATCH] 1
---
trading-order-sys/src/main/resources/mapper/SysMenuMapper.xml | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/trading-order-sys/src/main/resources/mapper/SysMenuMapper.xml b/trading-order-sys/src/main/resources/mapper/SysMenuMapper.xml
index 21789b9..61fe2eb 100644
--- a/trading-order-sys/src/main/resources/mapper/SysMenuMapper.xml
+++ b/trading-order-sys/src/main/resources/mapper/SysMenuMapper.xml
@@ -4,7 +4,7 @@
<mapper namespace="com.yami.trading.sys.dao.SysMenuMapper">
<select id="listMenuIdByRoleId" resultType="Long">
- select menu_id from tz_sys_role_menu where role_id = #{roleId}
+ select menu_id from tz_sys_role_menu where role_id = #{roleId} and is_show = 0
</select>
<!-- 查询用户的所有菜单 -->
@@ -15,22 +15,22 @@
</select>
<!-- 查询所有菜单 -->
<select id="listMenu" resultType="com.yami.trading.sys.model.SysMenu">
- select * from tz_sys_menu where `type` != 2 order by order_num
+ select * from tz_sys_menu where `type` != 2 and is_show = 0 order by order_num
</select>
<select id="listSimpleMenuNoButton" resultType="com.yami.trading.sys.model.SysMenu">
- select menu_id ,parent_id ,`name` from tz_sys_menu where `type` != 2 order by order_num
+ select menu_id ,parent_id ,`name` from tz_sys_menu where `type` != 2 and is_show = 0 order by order_num
</select>
<select id="listRootMenu" resultType="com.yami.trading.sys.model.SysMenu">
- select menu_id,`name` from tz_sys_menu where `type` = 0
+ select menu_id,`name` from tz_sys_menu where `type` = 0 and is_show = 0
</select>
<select id="listChildrenMenuByParentId" resultType="com.yami.trading.sys.model.SysMenu">
- select menu_id,`name` from tz_sys_menu where parent_id = #{parentId}
+ select menu_id,`name` from tz_sys_menu where parent_id = #{parentId} and is_show = 0
</select>
<select id="listMenuAndBtn" resultType="com.yami.trading.sys.model.SysMenu">
- select * from tz_sys_menu order by order_num
+ select * from tz_sys_menu where is_show = 0 order by order_num
</select>
</mapper>
--
Gitblit v1.9.3