|
@@ -10,6 +10,7 @@
|
|
<result column="id_" property="id"/>
|
|
<result column="id_" property="id"/>
|
|
<result column="name_" property="name"/>
|
|
<result column="name_" property="name"/>
|
|
<result column="permission_" property="permission"/>
|
|
<result column="permission_" property="permission"/>
|
|
|
|
+ <result column="parent_permission_" property="parentPermission"/>
|
|
<result column="path_" property="path"/>
|
|
<result column="path_" property="path"/>
|
|
<result column="parent_id_" property="parentId"/>
|
|
<result column="parent_id_" property="parentId"/>
|
|
<result column="icon_" property="icon"/>
|
|
<result column="icon_" property="icon"/>
|
|
@@ -38,8 +39,8 @@
|
|
<insert id="insert" parameterType="com.ym.mec.auth.api.entity.SysMenu" useGeneratedKeys="true" keyColumn="id"
|
|
<insert id="insert" parameterType="com.ym.mec.auth.api.entity.SysMenu" useGeneratedKeys="true" keyColumn="id"
|
|
keyProperty="id">
|
|
keyProperty="id">
|
|
INSERT INTO sys_menu
|
|
INSERT INTO sys_menu
|
|
- (id_,name_,permission_,path_,parent_id_,icon_,component_,sort_,type_,create_time_,update_time_,hidden_)
|
|
|
|
- VALUES(#{id},#{name},#{permission},#{path},#{parentId},#{icon},#{component},#{sort},#{type},now(),now(),#{hid})
|
|
|
|
|
|
+ (id_,name_,permission_,path_,parent_id_,icon_,component_,sort_,type_,create_time_,update_time_,hidden_,parent_permission_)
|
|
|
|
+ VALUES(#{id},#{name},#{permission},#{path},#{parentId},#{icon},#{component},#{sort},#{type},now(),now(),#{hid},#{parentPermission})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -58,6 +59,9 @@
|
|
<if test="permission != null">
|
|
<if test="permission != null">
|
|
permission_ = #{permission},
|
|
permission_ = #{permission},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="parentPermission != null">
|
|
|
|
+ parent_permission_ = #{parentPermission},
|
|
|
|
+ </if>
|
|
<if test="path != null">
|
|
<if test="path != null">
|
|
path_ = #{path},
|
|
path_ = #{path},
|
|
</if>
|
|
</if>
|