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 from sys_menu update sys_menu menu_name = #{menuName}, parent_id = #{parentId}, order_num = #{orderNum}, path = #{path}, component = #{component}, query = #{query}, is_frame = #{isFrame}, is_cache = #{isCache}, menu_type = #{menuType}, visible = #{visible}, status = #{status}, 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, query, is_frame, is_cache, menu_type, visible, status, perms, icon, remark, create_by, create_time )values( #{menuId}, #{parentId}, #{menuName}, #{orderNum}, #{path}, #{component}, #{query}, #{isFrame}, #{isCache}, #{menuType}, #{visible}, #{status}, #{perms}, #{icon}, #{remark}, #{createBy}, sysdate() ) delete from sys_menu where menu_id = #{menuId}