From 3cc2b58dcb169f147bc5bdccfd782514d736531d Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期二, 30 一月 2024 11:23:09 +0800
Subject: [PATCH] 主题库定义编码规则 规则基础配置 业务类型

---
 Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/ClassifyAuthMapper.xml |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/ClassifyAuthMapper.xml b/Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/ClassifyAuthMapper.xml
index b4c895c..77a8f4d 100644
--- a/Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/ClassifyAuthMapper.xml
+++ b/Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/ClassifyAuthMapper.xml
@@ -26,9 +26,17 @@
             </foreach>
         </if>
           AND AUTH_TYPE = #{authType}
-          AND BUTTON_IDS LIKE CONCAT('%', CONCAT((SELECT ID
-                                      FROM PL_SYS_MENU
-                                      WHERE CODE = #{menuCode}), '%'))
+          AND BUTTON_IDS LIKE CONCAT('%', CONCAT((
+            SELECT
+                pm.ID
+            FROM
+                PL_SYS_MENU ps,
+                PL_SYS_MENU pm
+            WHERE
+                ps.CODE = #{buttonCode}
+                AND ps.ID = pm.PARENT_ID
+                AND pm.CODE = #{menuCode}
+        ), '%'))
     </select>
 
 

--
Gitblit v1.9.3