|
@@ -25,10 +25,13 @@
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="remark" column="remark" />
|
|
|
<result property="sysTableName" column="sys_table_name" />
|
|
|
+ <result property="extraParam" column="extra_param" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectMenuVo">
|
|
|
- select id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time, create_by, update_by, update_time, remark, sys_table_name
|
|
|
+ select id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible
|
|
|
+ , status, ifnull(perms,'') as perms, icon, create_time, create_by, update_by, update_time, remark
|
|
|
+ , sys_table_name, extra_param
|
|
|
from sys_menu
|
|
|
</sql>
|
|
|
|
|
@@ -58,7 +61,10 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectMenuTreeAll" resultMap="SysMenuResult">
|
|
|
- select distinct m.id, m.parent_id, m.menu_name, m.path, m.component, 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, m.create_by, m.update_by, m.update_time, m.remark, m.sys_table_name
|
|
|
+ select distinct m.id, m.parent_id, m.menu_name, m.path, m.component, 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, m.create_by, m.update_by, m.update_time
|
|
|
+ , m.remark, m.sys_table_name, m.extra_param
|
|
|
from sys_menu m where m.menu_type in ('M', 'C') and m.status = '0'
|
|
|
order by m.parent_id, m.order_num
|
|
|
</select>
|
|
@@ -85,7 +91,7 @@
|
|
|
<select id="selectMenuTreeByUserId" parameterType="Long" resultMap="SysMenuResult">
|
|
|
select distinct m.id, m.parent_id, m.menu_name, m.path, m.component, 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, m.create_by, m.update_by
|
|
|
- , m.update_time, m.remark, m.sys_table_name
|
|
|
+ , m.update_time, m.remark, m.sys_table_name, m.extra_param
|
|
|
from sys_menu m
|
|
|
left join sys_role_menu rm on m.id = rm.menu_id
|
|
|
left join sys_user_role ur on rm.role_id = ur.role_id
|
|
@@ -95,7 +101,7 @@
|
|
|
union
|
|
|
select distinct m.id, m.parent_id, m.menu_name, m.path, m.component, 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, m.create_by, m.update_by
|
|
|
- , m.update_time, m.remark, m.sys_table_name
|
|
|
+ , m.update_time, m.remark, m.sys_table_name, m.extra_param
|
|
|
from sys_menu m
|
|
|
left join sys_role_menu rm on m.id = rm.menu_id
|
|
|
left join sys_user_role ur on rm.role_id = ur.role_id
|
|
@@ -202,6 +208,7 @@
|
|
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
<if test="sysTableName != null and sysTableName != ''">sys_table_name = #{sysTableName},</if>
|
|
|
+ <if test="extraParam != null and extraParam != ''">extra_param = #{extraParam},</if>
|
|
|
update_time = sysdate()
|
|
|
</set>
|
|
|
where id = #{id}
|
|
@@ -226,6 +233,7 @@
|
|
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
|
|
<if test="updateTime != null and updateTime != ''">update_time,</if>
|
|
|
<if test="sysTableName != null and sysTableName != ''">sys_table_name,</if>
|
|
|
+ <if test="extraParam != null and extraParam != ''">extra_param,</if>
|
|
|
create_time
|
|
|
)values(
|
|
|
<if test="parentId != null and parentId != 0">#{parentId},</if>
|
|
@@ -245,6 +253,7 @@
|
|
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
|
|
<if test="updateTime != null and updateTime != ''">#{updateTime},</if>
|
|
|
<if test="sysTableName != null and sysTableName != ''">#{sysTableName},</if>
|
|
|
+ <if test="extraParam != null and extraParam != ''">#{extraParam},</if>
|
|
|
sysdate()
|
|
|
)
|
|
|
</insert>
|