|
@@ -28,7 +28,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectMenuVo">
|
|
|
- select menu_id, menu_name, parent_id, order_num, path, component, `query`, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time
|
|
|
+ select menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time
|
|
|
from sys_menu
|
|
|
</sql>
|
|
|
|
|
@@ -54,7 +54,7 @@
|
|
|
m.menu_name,
|
|
|
m.path,
|
|
|
m.component,
|
|
|
- m.`query`,
|
|
|
+ m.query,
|
|
|
m.visible,
|
|
|
m.status,
|
|
|
ifnull(m.perms, '') as perms,
|
|
@@ -71,7 +71,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectMenuListByUserId" parameterType="SysMenu" resultMap="SysMenuResult">
|
|
|
- select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status,
|
|
|
+ select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.query, m.visible, m.status,
|
|
|
ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
|
|
from sys_menu m
|
|
|
left join sys_role_menu rm on m.menu_id = rm.menu_id
|
|
@@ -92,7 +92,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectMenuTreeByUserId" parameterType="Long" resultMap="SysMenuResult">
|
|
|
- select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
|
|
+ select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.query, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
|
|
from sys_menu m
|
|
|
left join sys_role_menu rm on m.menu_id = rm.menu_id
|
|
|
left join sys_user_role ur on rm.role_id = ur.role_id
|
|
@@ -155,7 +155,7 @@
|
|
|
</select>
|
|
|
<select id="selectMenu" parameterType="Long" resultType="Long">
|
|
|
select distinct m.menu_id from sys_menu m
|
|
|
- join sys_role_menu rm on m.menu_id = rm.menu_id
|
|
|
+ join sys_role_menu rm on m.menu_id = rm.menu_id
|
|
|
join sys_role ro on rm.role_id = ro.role_id
|
|
|
where ro.role_id=#{roleId}
|
|
|
</select>
|
|
@@ -168,7 +168,7 @@
|
|
|
<if test="orderNum != null">order_num = #{orderNum},</if>
|
|
|
<if test="path != null and path != ''">path = #{path},</if>
|
|
|
<if test="component != null">component = #{component},</if>
|
|
|
- <if test="query != null">`query` = #{query},</if>
|
|
|
+ <if test="query != null">query = #{query},</if>
|
|
|
<if test="isFrame != null and isFrame != ''">is_frame = #{isFrame},</if>
|
|
|
<if test="isCache != null and isCache != ''">is_cache = #{isCache},</if>
|
|
|
<if test="menuType != null and menuType != ''">menu_type = #{menuType},</if>
|
|
@@ -191,7 +191,7 @@
|
|
|
<if test="orderNum != null">order_num,</if>
|
|
|
<if test="path != null and path != ''">path,</if>
|
|
|
<if test="component != null and component != ''">component,</if>
|
|
|
- <if test="query != null and query != ''">`query`,</if>
|
|
|
+ <if test="query != null and query != ''">query,</if>
|
|
|
<if test="isFrame != null and isFrame != ''">is_frame,</if>
|
|
|
<if test="isCache != null and isCache != ''">is_cache,</if>
|
|
|
<if test="menuType != null and menuType != ''">menu_type,</if>
|