|
@@ -24,10 +24,11 @@
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="remark" column="remark" />
|
|
<result property="remark" column="remark" />
|
|
|
|
+ <result property="sysTableName" column="sys_table_name" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectMenuVo">
|
|
<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
|
|
|
|
|
|
+ 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
|
|
from sys_menu
|
|
from sys_menu
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
@@ -48,13 +49,13 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectMenuTreeAll" resultMap="SysMenuResult">
|
|
<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
|
|
|
|
|
|
+ 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
|
|
from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0
|
|
from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0
|
|
order by m.parent_id, m.order_num
|
|
order by m.parent_id, m.order_num
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectMenuListByUserId" parameterType="SysMenu" resultMap="SysMenuResult">
|
|
<select id="selectMenuListByUserId" parameterType="SysMenu" 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
|
|
|
|
|
|
+ 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
|
|
from sys_menu m
|
|
from sys_menu m
|
|
left join sys_role_menu rm on m.id = rm.menu_id
|
|
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
|
|
left join sys_user_role ur on rm.role_id = ur.role_id
|
|
@@ -73,7 +74,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectMenuTreeById" parameterType="Long" resultMap="SysMenuResult">
|
|
<select id="selectMenuTreeById" 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
|
|
|
|
|
|
+ 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
|
|
from sys_menu m
|
|
from sys_menu m
|
|
left join sys_role_menu rm on m.id = rm.menu_id
|
|
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
|
|
left join sys_user_role ur on rm.role_id = ur.role_id
|
|
@@ -141,6 +142,7 @@
|
|
<if test="icon !=null and icon != ''">icon = #{icon},</if>
|
|
<if test="icon !=null and icon != ''">icon = #{icon},</if>
|
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
|
+ <if test="sysTableName != null and sysTableName != ''">sys_table_name = #{sysTableName},</if>
|
|
update_time = sysdate()
|
|
update_time = sysdate()
|
|
</set>
|
|
</set>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
@@ -162,6 +164,9 @@
|
|
<if test="icon != null and icon != ''">icon,</if>
|
|
<if test="icon != null and icon != ''">icon,</if>
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
|
+ <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>
|
|
create_time
|
|
create_time
|
|
)values(
|
|
)values(
|
|
<if test="parentId != null and parentId != 0">#{parentId},</if>
|
|
<if test="parentId != null and parentId != 0">#{parentId},</if>
|
|
@@ -178,6 +183,9 @@
|
|
<if test="icon != null and icon != ''">#{icon},</if>
|
|
<if test="icon != null and icon != ''">#{icon},</if>
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
|
+ <if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
|
|
|
+ <if test="updateTime != null and updateTime != ''">#{updateTime},</if>
|
|
|
|
+ <if test="sysTableName != null and sysTableName != ''">#{sysTableName},</if>
|
|
sysdate()
|
|
sysdate()
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|