id,owner_id,products_ids,address_ids,product_type_ids
delete from store
where id = #{id}
insert into store
id,owner_id,products_ids,address_ids,product_type_ids,#{id},#{ownerId},#{productsIds},#{addressIds},#{productTypeIds},
update store
owner_id = #{ownerId},
products_ids = #{productsIds},
address_ids = #{addressIds},
product_type_ids = #{productTypeIds},
where id = #{id}