insert into goods(id, name, img, descr, specials, price, unit, store, category_id)
values (#{id}, #{name}, #{img}, #{descr}, #{specials}, #{price}, #{unit}, #{store}, #{categoryId})
update goods set name = #{name}, img = #{img}, descr = #{descr}, specials = #{specials}, price = #{price},
unit = #{unit}, store = #{store}, category_id = #{categoryId}
where id = #{id}