delete from sys_role_menu where role_id in #{roleId} AND valid = 1 delete from sys_role_menu where menu_id = #{value} AND valid = 1