fix : 메뉴조회 수정

main
이범준 2 years ago
parent adf50c3961
commit dfe3c563df

@ -7,9 +7,7 @@
<include refid="sqlTree"/>
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 @@
<include refid="sqlTree"/>
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 @@
<include refid="sqlTree"/>
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"

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

Loading…
Cancel
Save