select menu_id, menu_name, parent_id, order_num, path, component, is_frame, menu_type, visible, ifnull(perms,'') as perms, icon, create_time from sys_menu update sys_menu menu_name = #{menuName}, parent_id = #{parentId}, order_num = #{orderNum}, path = #{path}, component = #{component}, is_frame = #{isFrame}, menu_type = #{menuType}, visible = #{visible}, perms = #{perms}, icon = #{icon}, remark = #{remark}, update_by = #{updateBy}, update_time = sysdate() where menu_id = #{menuId} insert into sys_menu( menu_id, parent_id, menu_name, order_num, path, component, is_frame, menu_type, visible, perms, icon, remark, create_by, create_time )values( #{menuId}, #{parentId}, #{menuName}, #{orderNum}, #{path}, #{component}, #{isFrame}, #{menuType}, #{visible}, #{perms}, #{icon}, #{remark}, #{createBy}, sysdate() ) delete from sys_menu where menu_id = #{menuId}