메뉴 수정1

master
Hyung Geun 2022-04-05 16:10:55 +09:00
parent aa4c298b14
commit d7d06b15d5
1 changed files with 53 additions and 9 deletions

View File

@ -20,15 +20,59 @@
<select id="selectListWithHigher" parameterType="menuVO" resultMap="menuResult"> <select id="selectListWithHigher" parameterType="menuVO" resultMap="menuResult">
<![CDATA[ <![CDATA[
SELECT with recursive subject (
* id,
FROM name,
T_MENU eng_name,
START WITH parent,
ID = #{id} depth,
CONNECT BY PRIOR url,
PARENT = ID menu_position,
ORDER BY DEPTH, ID visible,
url_group,
sub_visible,
role_level,
url_query,
board_id,
window_target
) as(
select
id,
name,
eng_name,
parent,
depth,
url,
menu_position,
visible,
url_group,
sub_visible,
role_level,
url_query,
board_id,
window_target
from t_menu
where id = #{id}
union all
select
m.id,
m.name,
m.eng_name,
m.parent,
m.depth,
m.url,
m.menu_position,
m.visible,
m.url_group,
m.sub_visible,
m.role_level,
m.url_query,
m.board_id,
m.window_target
from t_menu m inner join subject s on m.id = s.parent
)
select * from subject
ORDER BY depth, ID;
]]> ]]>
</select> </select>