insert into broker(id, `name`, promo_code) values (#{id}, #{name}, #{promoCode})
update broker set `name` = #{name}, promo_code = #{promoCode} where id = #{id}
update broker
set status = (CASE
status
WHEN 1 THEN
0
WHEN 0 THEN
1
ELSE null
END)
where id = #{id}
delete from broker where id = #{id}