diff --git a/src/main/resources/sqlmapper/framework/cache/cachemenu-mysql-mapper.xml b/src/main/resources/sqlmapper/framework/cache/cachemenu-mysql-mapper.xml index 9a8bc95c..6bcccf81 100644 --- a/src/main/resources/sqlmapper/framework/cache/cachemenu-mysql-mapper.xml +++ b/src/main/resources/sqlmapper/framework/cache/cachemenu-mysql-mapper.xml @@ -19,6 +19,7 @@ , ( SELECT COUNT(1) FROM TREE_QUERY SA WHERE SA.parnt_menu_id = D.menu_id) AS "childCnt" + , D.icon_class AS "iconClass" FROM xit_menu_creat_dtls A INNER JOIN xit_menu_info B ON A.menu_no = B.menu_no @@ -50,6 +51,7 @@ , (SELECT COUNT(1) FROM TREE_QUERY SA WHERE SA.parnt_menu_id = D.menu_id) AS "childCnt" + , D.icon_class AS "iconClass" FROM xit_menu_creat_dtls A JOIN xit_menu_info B ON A.menu_no = B.menu_no @@ -67,6 +69,7 @@ , menu_full_path , menu_full_path_name , menu_depth + , icon_class ) AS ( SELECT A.menu_no AS "menu_id" , A.upper_menu_no AS "parnt_menu_id" @@ -74,6 +77,7 @@ , CONCAT('', A.menu_no) AS "menu_full_path" , CONCAT('', A.menu_nm) AS "menu_full_path_name" , 1 AS "menu_depth" + , A.icon_class AS "icon_class" FROM xit_menu_info A INNER JOIN xit_progrm_list B ON A.progrm_file_nm = B.progrm_file_nm @@ -85,6 +89,7 @@ , CONCAT(B.menu_full_path, '_', A.menu_no) AS "menu_full_path" , CONCAT(B.menu_full_path_name, ' > ', A.menu_nm) AS "menu_full_path_name" , B.menu_depth + 1 AS "menu_depth" + , A.icon_class AS "icon_class" FROM xit_menu_info A INNER JOIN tree_query B ON A.upper_menu_no = B.menu_id diff --git a/src/main/webapp/WEB-INF/jsp/framework/layouts/tiles/biz/layout-tiles-biz-main.jsp b/src/main/webapp/WEB-INF/jsp/framework/layouts/tiles/biz/layout-tiles-biz-main.jsp index 25066a6f..bcb07f8c 100644 --- a/src/main/webapp/WEB-INF/jsp/framework/layouts/tiles/biz/layout-tiles-biz-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/framework/layouts/tiles/biz/layout-tiles-biz-main.jsp @@ -91,7 +91,11 @@ let i = document.createElement("i"); i.classList.add("menu-icon"); i.classList.add("bx"); - menuObj.childCnt > 0 ? i.classList.add("bx-folder-plus") : i.classList.add("bx-file"); + if(menuObj.iconClass != null && menuObj.iconClass != ""){ + i.classList.add(menuObj.iconClass); + } else { + menuObj.childCnt > 0 ? i.classList.add("bx-folder-plus") : i.classList.add("bx-file"); + } a.appendChild(i);