From e8ff379d1a31f09e4d024e96eb788e5b65e0931d Mon Sep 17 00:00:00 2001
From: zhanzhiqin <895896009@qq.com>
Date: 星期二, 01 三月 2022 16:58:13 +0800
Subject: [PATCH] fix

---
 dao/src/main/resources/mapper/MenuMapper.xml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/dao/src/main/resources/mapper/MenuMapper.xml b/dao/src/main/resources/mapper/MenuMapper.xml
index 9c58432..6c7c21a 100644
--- a/dao/src/main/resources/mapper/MenuMapper.xml
+++ b/dao/src/main/resources/mapper/MenuMapper.xml
@@ -30,4 +30,13 @@
     <select id="listMenu" resultType="java.lang.Long">
         SELECT id FROM menu
     </select>
+
+    <select id="listMenuIfBinding" resultType="java.lang.Long">
+        SELECT t1.id
+        FROM menu t1
+        LEFT JOIN role_menu_relation t2 ON t1.id = t2.menu_id
+        <where>
+            t2.menu_id = #{id}
+        </where>
+    </select>
 </mapper>

--
Gitblit v1.9.3