UPDATE thr_system_bus_api code=#{code}, `name`=#{name}, `thirdBuyCode`=#{thirdBuyCode}, thirdSys=#{thirdSys}, url=#{url}, `type`=#{type}, remark=#{remark}, WHERE id = #{id} insert ignore INTO thr_system_bus_api (`code`, `name`, thirdBuyCode, `thirdSys`, url, `type`, remark) values (#{code}, #{name}, #{thirdBuyCode}, #{thirdSys}, #{url}, #{type}, #{remark}) insert into thr_system_bus_api (code, `name`, thirdBuyCode, thirdSys, type) values (#{item.code}, #{item.name}, #{item.thirdBuyCode}, #{item.thirdSys}, #{item.type}) delete from thr_system_bus_api where id = #{id}