字段优化
This commit is contained in:
@@ -9,13 +9,13 @@
|
||||
<result column="path" jdbcType="VARCHAR" property="path"/>
|
||||
<result column="sort" jdbcType="INTEGER" property="sort"/>
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark"/>
|
||||
<result column="is_deleted" jdbcType="INTEGER" property="isDeleted"/>
|
||||
<result column="deleted" jdbcType="BIT" property="deleted"/>
|
||||
<result column="icon" jdbcType="VARCHAR" property="icon"/>
|
||||
<result column="menu_type" jdbcType="TINYINT" property="menuType"/>
|
||||
<result column="env" jdbcType="VARCHAR" property="env"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, parent_id, code, name, path, sort, remark, is_deleted, icon, menu_type, env
|
||||
id, parent_id, code, name, path, sort, remark, deleted, icon, menu_type, env
|
||||
</sql>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into sys_menu
|
||||
@@ -38,8 +38,8 @@
|
||||
<if test="remark != null">
|
||||
remark,
|
||||
</if>
|
||||
<if test="isDeleted != null">
|
||||
is_deleted,
|
||||
<if test="deleted != null">
|
||||
deleted,
|
||||
</if>
|
||||
<if test="icon != null">
|
||||
icon,
|
||||
@@ -70,8 +70,8 @@
|
||||
<if test="remark != null">
|
||||
#{remark},
|
||||
</if>
|
||||
<if test="isDeleted != null">
|
||||
#{isDeleted},
|
||||
<if test="deleted != null">
|
||||
#{deleted},
|
||||
</if>
|
||||
<if test="icon != null">
|
||||
#{icon},
|
||||
@@ -106,8 +106,8 @@
|
||||
<if test="record.remark != null">
|
||||
remark = #{record.remark},
|
||||
</if>
|
||||
<if test="record.isDeleted != null">
|
||||
is_deleted = #{record.isDeleted},
|
||||
<if test="record.deleted != null">
|
||||
deleted = #{record.deleted},
|
||||
</if>
|
||||
<if test="record.icon != null">
|
||||
icon = #{record.icon},
|
||||
@@ -129,7 +129,7 @@
|
||||
from
|
||||
sys_menu
|
||||
where
|
||||
is_deleted = '0'
|
||||
deleted = '0'
|
||||
<if test="list!=null and list.size>0">
|
||||
and parent_id in
|
||||
<foreach collection="list" item="parentId" open="(" close=")" separator=",">
|
||||
@@ -149,7 +149,7 @@
|
||||
update
|
||||
sys_menu
|
||||
set
|
||||
is_deleted = '1'
|
||||
deleted = '1'
|
||||
where
|
||||
id in
|
||||
<foreach collection="list" open="(" item="item" separator="," close=")">
|
||||
|
||||
@@ -39,7 +39,7 @@ public class SysMenuDO implements Serializable {
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty("是否已删除")
|
||||
private Integer isDeleted;
|
||||
private Boolean deleted;
|
||||
|
||||
@ApiModelProperty("图标")
|
||||
private String icon;
|
||||
|
||||
Reference in New Issue
Block a user