fix : 메뉴조회 수정

main
이범준 2 years ago
parent adf50c3961
commit dfe3c563df

@ -7,9 +7,7 @@
<include refid="sqlTree"/> <include refid="sqlTree"/>
SELECT D.menu_id AS "menuSid" SELECT D.menu_id AS "menuSid"
, D.menu_name AS "menuName" , D.menu_name AS "menuName"
, (SELECT CASE SA.URL WHEN '/' THEN '#' ELSE SA.URL END , (CASE B.ACTION WHEN '/' THEN '#' ELSE B.ACTION END) AS "menuUrl"
FROM xit_progrm_list SA
WHERE B.progrm_file_nm = SA.progrm_file_nm ) AS "menuUrl"
, D.menu_depth AS "menuDepth" , D.menu_depth AS "menuDepth"
, D.parnt_menu_id AS "parentSid" , D.parnt_menu_id AS "parentSid"
, D.menu_full_path AS "menuPath" , D.menu_full_path AS "menuPath"
@ -30,9 +28,7 @@
<include refid="sqlTree"/> <include refid="sqlTree"/>
SELECT D.menu_id AS "menuSid" SELECT D.menu_id AS "menuSid"
, D.menu_name AS "menuName" , D.menu_name AS "menuName"
, (SELECT CASE SA.URL WHEN '/' THEN '#' ELSE SA.URL END , (CASE B.ACTION WHEN '/' THEN '#' ELSE B.ACTION END) AS "menuUrl"
FROM xit_progrm_list SA
WHERE B.progrm_file_nm = SA.progrm_file_nm ) AS "menuUrl"
, D.menu_depth AS "menuDepth" , D.menu_depth AS "menuDepth"
, D.parnt_menu_id AS "parentSid" , D.parnt_menu_id AS "parentSid"
, D.menu_full_path AS "menuPath" , D.menu_full_path AS "menuPath"
@ -61,10 +57,7 @@
<include refid="sqlTree"/> <include refid="sqlTree"/>
SELECT D.menu_id AS "menuSid" SELECT D.menu_id AS "menuSid"
, D.menu_name AS "menuName" , D.menu_name AS "menuName"
, ( , (CASE B.ACTION WHEN '/' THEN '#' ELSE B.ACTION END) AS "menuUrl"
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"
, D.menu_depth AS "menuDepth" , D.menu_depth AS "menuDepth"
, D.parnt_menu_id AS "parentSid" , D.parnt_menu_id AS "parentSid"
, D.menu_full_path AS "menuPath" , D.menu_full_path AS "menuPath"
@ -101,8 +94,6 @@
, 1 AS "menu_depth" , 1 AS "menu_depth"
, '' AS "icon_class" , '' AS "icon_class"
FROM xit_menu_info A 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 WHERE A.UPPER_MENU_NO = 0
UNION ALL UNION ALL
SELECT A.menu_no AS "menu_id" SELECT A.menu_no AS "menu_id"

@ -51,16 +51,16 @@
</select> </select>
<select id="findMenuPath" resultType="String"> <select id="findMenuPath" resultType="String">
SELECT B.URL SELECT A.ACTION
FROM XIT_MENU_INFO A FROM XIT_MENU_INFO A
, XIT_PROGRM_LIST B WHERE A.MENU_NO = #{menu_no}
WHERE A.PROGRM_FILE_NM = B.PROGRM_FILE_NM
AND A.MENU_NO = #{menu_no}
</select> </select>
<select id="findMenuPath2" resultType="String"> <select id="findMenuPath2" resultType="String">
SELECT B.URL SELECT A.ACTION
FROM XIT_PROGRM_LIST B FROM XIT_MENU_INFO A
WHERE B.PROGRM_FILE_NM = #{pgmId} , XIT_PROGRM_LIST B
WHERE A.PROGRM_FILE_NM = B.PROGRM_FILE_NM
AND B.PROGRM_FILE_NM = #{pgmId}
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save