id as id,
menu_id as menuId,
button_id as buttonId
menu_id = #{menuId} AND
button_id = #{buttonId} AND
insert into sys_menu_button
id,
menu_id,
button_id,
#{id},
#{menuId},
#{buttonId},
update sys_menu_button
id=#{id},
menu_id=#{menuId},
button_id=#{buttonId},
where id=#{id}
Delete from sys_menu_button where menu_id = #{menuId}