select role_id, ctrl_id from sys_role_ctrl
insert into sys_role_ctrl
role_id,ctrl_id,#{roleId},#{ctrlId},
update sys_role_ctrl
ctrl_id = #{ctrlId},
where role_id = #{roleId}
delete from sys_role_ctrl where role_id = #{roleId}
delete from sys_role_ctrl where role_id in
#{roleId}