From dfe3c563df4eb26379f59aaac48b4c5b8ae5454c Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 19 May 2023 14:55:01 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=EB=A9=94=EB=89=B4=EC=A1=B0=ED=9A=8C?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../framework/cache/cachemenu-mysql-mapper.xml | 15 +++------------ .../mapper/framework/cmm/XitMain-mysql-mapper.xml | 14 +++++++------- 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/src/main/resources/sql/mapper/framework/cache/cachemenu-mysql-mapper.xml b/src/main/resources/sql/mapper/framework/cache/cachemenu-mysql-mapper.xml index e6553726..33a49132 100644 --- a/src/main/resources/sql/mapper/framework/cache/cachemenu-mysql-mapper.xml +++ b/src/main/resources/sql/mapper/framework/cache/cachemenu-mysql-mapper.xml @@ -7,9 +7,7 @@ SELECT D.menu_id AS "menuSid" , D.menu_name AS "menuName" - , (SELECT CASE SA.URL WHEN '/' THEN '#' ELSE SA.URL END - FROM xit_progrm_list SA - WHERE B.progrm_file_nm = SA.progrm_file_nm ) AS "menuUrl" + , (CASE B.ACTION WHEN '/' THEN '#' ELSE B.ACTION END) AS "menuUrl" , D.menu_depth AS "menuDepth" , D.parnt_menu_id AS "parentSid" , D.menu_full_path AS "menuPath" @@ -30,9 +28,7 @@ SELECT D.menu_id AS "menuSid" , D.menu_name AS "menuName" - , (SELECT CASE SA.URL WHEN '/' THEN '#' ELSE SA.URL END - FROM xit_progrm_list SA - WHERE B.progrm_file_nm = SA.progrm_file_nm ) AS "menuUrl" + , (CASE B.ACTION WHEN '/' THEN '#' ELSE B.ACTION END) AS "menuUrl" , D.menu_depth AS "menuDepth" , D.parnt_menu_id AS "parentSid" , D.menu_full_path AS "menuPath" @@ -61,10 +57,7 @@ SELECT D.menu_id AS "menuSid" , D.menu_name AS "menuName" - , ( - SELECT CASE SA.URL WHEN '/' THEN '#' ELSE SA.URL END - FROM xit_progrm_list SA - WHERE B.progrm_file_nm = SA.progrm_file_nm) AS "menuUrl" + , (CASE B.ACTION WHEN '/' THEN '#' ELSE B.ACTION END) AS "menuUrl" , D.menu_depth AS "menuDepth" , D.parnt_menu_id AS "parentSid" , D.menu_full_path AS "menuPath" @@ -101,8 +94,6 @@ , 1 AS "menu_depth" , '' AS "icon_class" FROM xit_menu_info A - INNER JOIN xit_progrm_list B - ON A.progrm_file_nm = B.progrm_file_nm WHERE A.UPPER_MENU_NO = 0 UNION ALL SELECT A.menu_no AS "menu_id" diff --git a/src/main/resources/sql/mapper/framework/cmm/XitMain-mysql-mapper.xml b/src/main/resources/sql/mapper/framework/cmm/XitMain-mysql-mapper.xml index 8667dc8f..38a67a6a 100644 --- a/src/main/resources/sql/mapper/framework/cmm/XitMain-mysql-mapper.xml +++ b/src/main/resources/sql/mapper/framework/cmm/XitMain-mysql-mapper.xml @@ -51,16 +51,16 @@