select menu_id, menu_name, parent_id, order_num, url, target, menu_type, visible, ifnull(perms,'') as perms, icon, create_by, create_time from sys_menu delete from sys_menu where menu_id = #{menuId} or parent_id = #{menuId} update sys_menu menu_name = #{menuName}, parent_id = #{parentId}, order_num = #{orderNum}, url = #{url}, target = #{target}, 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, url, target, menu_type, visible, perms, icon, remark, create_by, create_time )values( #{menuId}, #{parentId}, #{menuName}, #{orderNum}, #{url}, #{target}, #{menuType}, #{visible}, #{perms}, #{icon}, #{remark}, #{createBy}, sysdate() )