role_button_id as roleButtonId, menu_id as menuId, role_id as roleId, button_id as buttonId, button_id = #{buttonId} AND role_id = #{roleId} AND insert into sys_role_button role_button_id, button_id, role_id, menu_id, #{roleButtonId}, #{buttonId}, #{roleId}, #{menuId}, update sys_role_button role_button_id=#{roleButtonId}, button_id=#{buttonId}, role_id=#{roleId}, where id=#{id} update sys_role_button SET delFlag = 0 where id=#{id} Delete from sys_role_button where role_id = #{roleId}