id,product_category,spec_model, unit delete from stock_product where id = #{id,jdbcType=INTEGER} insert into stock_product id, product_category, spec_model, unit, #{id,jdbcType=INTEGER}, #{productCategory,jdbcType=VARCHAR}, #{specModel,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, update stock_product product_category = #{productCategory,jdbcType=VARCHAR}, spec_model = #{specModel,jdbcType=VARCHAR}, unit = #{unit,jdbcType=VARCHAR}, where id = #{id,jdbcType=INTEGER}