修复角色菜单临时接口

This commit is contained in:
zhangchenbiao
2023-08-01 14:49:05 +08:00
parent d3a8e2d40e
commit cd46416a3c
8 changed files with 6 additions and 163 deletions

View File

@@ -6,27 +6,17 @@
<result column="parent_id" jdbcType="BIGINT" property="parentId"/>
<result column="code" jdbcType="VARCHAR" property="code"/>
<result column="name" jdbcType="VARCHAR" property="name"/>
<result column="alias" jdbcType="VARCHAR" property="alias"/>
<result column="path" jdbcType="VARCHAR" property="path"/>
<result column="perms" jdbcType="VARCHAR" property="perms"/>
<result column="source" jdbcType="VARCHAR" property="source"/>
<result column="sort" jdbcType="INTEGER" property="sort"/>
<result column="category" jdbcType="INTEGER" property="category"/>
<result column="action" jdbcType="INTEGER" property="action"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="platform" jdbcType="VARCHAR" property="platform"/>
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
<result column="type" jdbcType="VARCHAR" property="type"/>
<result column="target" jdbcType="VARCHAR" property="target"/>
<result column="component" jdbcType="VARCHAR" property="component"/>
<result column="icon" jdbcType="VARCHAR" property="icon"/>
<result column="menu_type" jdbcType="TINYINT" property="menuType"/>
<result column="env" jdbcType="VARCHAR" property="env"/>
<result column="common_functions_icon" jdbcType="VARCHAR" property="commonFunctionsIcon"/>
</resultMap>
<sql id="Base_Column_List">
id, parent_id, code, name, alias, path, perms, source, sort, category, action, remark,
platform, is_deleted, type, target, component, icon, menu_type, env, common_functions_icon
id, parent_id, code, name, path, sort, remark, is_deleted, type, icon, menu_type, env
</sql>
<insert id="insertSelective" keyColumn="id" keyProperty="id" useGeneratedKeys="true">
insert into sys_menu
@@ -40,45 +30,21 @@
<if test="name != null">
name,
</if>
<if test="alias != null">
alias,
</if>
<if test="path != null">
path,
</if>
<if test="perms != null">
perms,
</if>
<if test="source != null">
source,
</if>
<if test="sort != null">
sort,
</if>
<if test="category != null">
category,
</if>
<if test="action != null">
action,
</if>
<if test="remark != null">
remark,
</if>
<if test="platform != null">
platform,
</if>
<if test="isDeleted != null">
is_deleted,
</if>
<if test="type != null">
type,
</if>
<if test="target != null">
target,
</if>
<if test="component != null">
component,
</if>
<if test="icon != null">
icon,
</if>
@@ -88,9 +54,6 @@
<if test="env != null">
env,
</if>
<if test="commonFunctionsIcon != null">
common_functions_icon,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="parentId != null">
@@ -102,45 +65,21 @@
<if test="name != null">
#{name},
</if>
<if test="alias != null">
#{alias},
</if>
<if test="path != null">
#{path},
</if>
<if test="perms != null">
#{perms},
</if>
<if test="source != null">
#{source},
</if>
<if test="sort != null">
#{sort},
</if>
<if test="category != null">
#{category},
</if>
<if test="action != null">
#{action},
</if>
<if test="remark != null">
#{remark},
</if>
<if test="platform != null">
#{platform},
</if>
<if test="isDeleted != null">
#{isDeleted},
</if>
<if test="type != null">
#{type},
</if>
<if test="target != null">
#{target},
</if>
<if test="component != null">
#{component},
</if>
<if test="icon != null">
#{icon},
</if>
@@ -150,9 +89,6 @@
<if test="env != null">
#{env},
</if>
<if test="commonFunctionsIcon != null">
#{commonFunctionsIcon},
</if>
</trim>
</insert>
<update id="batchUpdateMenu">
@@ -168,45 +104,21 @@
<if test="record.name != null">
name = #{record.name},
</if>
<if test="record.alias != null">
alias = #{record.alias},
</if>
<if test="record.path != null">
path = #{record.path},
</if>
<if test="record.perms != null">
perms = #{record.perms},
</if>
<if test="record.source != null">
source = #{record.source},
</if>
<if test="record.sort != null">
sort = #{record.sort},
</if>
<if test="record.category != null">
category = #{record.category},
</if>
<if test="record.action != null">
action = #{record.action},
</if>
<if test="record.remark != null">
remark = #{record.remark},
</if>
<if test="record.platform != null">
platform = #{record.platform},
</if>
<if test="record.isDeleted != null">
is_deleted = #{record.isDeleted},
</if>
<if test="record.type != null">
type = #{record.type},
</if>
<if test="record.target != null">
target = #{record.target},
</if>
<if test="record.component != null">
component = #{record.component},
</if>
<if test="record.icon != null">
icon = #{record.icon},
</if>
@@ -216,9 +128,6 @@
<if test="record.env != null">
env = #{record.env},
</if>
<if test="record.commonFunctionsIcon != null">
common_functions_icon = #{record.commonFunctionsIcon},
</if>
</set>
where id = #{record.id}
</foreach>