From ae0dc4f46b075b5eace5596a66f6b81e357ae05e Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 03 十二月 2024 17:24:06 +0800
Subject: [PATCH] 码值codeallcode查重改成一句分批次查询(500)一次执行查询改为and拼接的依据sql查询。

---
 Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/ClassifyAuthMapper.xml |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 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 3f4c681..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
@@ -25,10 +25,18 @@
                 #{item}
             </foreach>
         </if>
-          AND BUTTON_IDS LIKE CONCAT('%', CONCAT((SELECT ID
-                                                  FROM PL_SYS_MENU
-                                                  WHERE CODE = 'classify_view'), '%'))
-
+          AND AUTH_TYPE = #{authType}
+          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