|
|
@@ -27,7 +27,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectMenuVo">
|
|
|
- select menu_id, menu_name, parent_id, order_num, path, component, `query`, 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, `query`, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time
|
|
|
from sys_menu
|
|
|
</sql>
|
|
|
|
|
|
@@ -157,7 +157,7 @@
|
|
|
|
|
|
<select id="selectMenuById" parameterType="Long" resultMap="SysMenuResult">
|
|
|
<include refid="selectMenuVo"/>
|
|
|
- where menu_id = #{menuId}
|
|
|
+ where id = #{id}
|
|
|
</select>
|
|
|
|
|
|
<select id="hasChildByMenuId" resultType="Integer">
|
|
|
@@ -189,12 +189,12 @@
|
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
update_time = sysdate()
|
|
|
</set>
|
|
|
- where menu_id = #{menuId}
|
|
|
+ where id = #{id}
|
|
|
</update>
|
|
|
|
|
|
<insert id="insertMenu" parameterType="com.xunmei.system.domain.SysMenu">
|
|
|
insert into sys_menu(
|
|
|
- <if test="menuId != null and menuId != 0">menu_id,</if>
|
|
|
+ <if test="id != null and id != 0">id,</if>
|
|
|
<if test="parentId != null and parentId != 0">parent_id,</if>
|
|
|
<if test="menuName != null and menuName != ''">menu_name,</if>
|
|
|
<if test="orderNum != null">order_num,</if>
|
|
|
@@ -212,7 +212,7 @@
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
create_time
|
|
|
)values(
|
|
|
- <if test="menuId != null and menuId != 0">#{menuId},</if>
|
|
|
+ <if test="id != null and id != 0">#{id},</if>
|
|
|
<if test="parentId != null and parentId != 0">#{parentId},</if>
|
|
|
<if test="menuName != null and menuName != ''">#{menuName},</if>
|
|
|
<if test="orderNum != null">#{orderNum},</if>
|
|
|
@@ -233,7 +233,7 @@
|
|
|
</insert>
|
|
|
|
|
|
<delete id="deleteMenuById" parameterType="Long">
|
|
|
- delete from sys_menu where menu_id = #{menuId}
|
|
|
+ delete from sys_menu where id = #{menuId}
|
|
|
</delete>
|
|
|
|
|
|
</mapper>
|