From 869a5b02c515dca42022c53647edbfbef8c2c3c1 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期三, 11 十月 2023 15:39:26 +0800 Subject: [PATCH] 租户条件从常量类配置方式修改为nacos上拉取配置 --- Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/MenuMapper.xml | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/MenuMapper.xml b/Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/MenuMapper.xml index bda18b0..6877a21 100644 --- a/Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/MenuMapper.xml +++ b/Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/MenuMapper.xml @@ -73,7 +73,7 @@ ORDER BY menu.sort </select> - <select id="lazyMenuList" resultMap="menuVOResultMap"> + <select id="lazyMenuPage" resultMap="menuVOResultMap"> SELECT menu.*, ( @@ -221,7 +221,13 @@ </select> <select id="grantTree" resultMap="treeNodeResultMap"> - select id, parent_id, name as title, id as "value", id as "key" from pl_sys_menu where is_deleted = 0 order by sort + select + id, + parent_id, + name as title, + id as "value", + id as "key" + from pl_sys_menu where is_deleted = 0 order by sort </select> <select id="grantTreeByRole" resultMap="treeNodeResultMap"> @@ -475,4 +481,13 @@ GROUP BY m.path </select> + <select id="selectMenuChildByBtnType" resultMap="menuResultMap"> + select pm.* + from pl_sys_menu ps, pl_sys_menu pm + where pm.is_deleted = 0 + and ps.category = 1 + and ps.CODE = #{btmType} + and ps.id = pm.parent_id order by pm.sort asc + </select> + </mapper> -- Gitblit v1.9.3