메뉴 수정1
parent
aa4c298b14
commit
d7d06b15d5
|
|
@ -20,15 +20,59 @@
|
|||
|
||||
<select id="selectListWithHigher" parameterType="menuVO" resultMap="menuResult">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
T_MENU
|
||||
START WITH
|
||||
ID = #{id}
|
||||
CONNECT BY PRIOR
|
||||
PARENT = ID
|
||||
ORDER BY DEPTH, ID
|
||||
with recursive subject (
|
||||
id,
|
||||
name,
|
||||
eng_name,
|
||||
parent,
|
||||
depth,
|
||||
url,
|
||||
menu_position,
|
||||
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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue