id,product_id,inbound_time, inbound_batch,supplier_name,inbound_quantity, tax_inclusive_price,tax_inclusive_total,tax_rate, tax_exclusive_total,inbound_person delete from stock_in where id = #{id,jdbcType=INTEGER} insert into stock_in ( id,product_id,inbound_time ,inbound_batch,supplier_name,inbound_quantity ,tax_inclusive_price,tax_inclusive_total,tax_rate ,tax_exclusive_total,inbound_person) values (#{id,jdbcType=INTEGER},#{productId,jdbcType=INTEGER},#{inboundTime,jdbcType=TIMESTAMP} ,#{inboundBatch,jdbcType=VARCHAR},#{supplierName,jdbcType=VARCHAR},#{inboundQuantity,jdbcType=INTEGER} ,#{taxInclusivePrice,jdbcType=DECIMAL},#{taxInclusiveTotal,jdbcType=DECIMAL},#{taxRate,jdbcType=DECIMAL} ,#{taxExclusiveTotal,jdbcType=DECIMAL},#{inboundPerson,jdbcType=VARCHAR}) insert into stock_in id, product_id, inbound_time, inbound_batch, supplier_name, inbound_quantity, tax_inclusive_price, tax_inclusive_total, tax_rate, tax_exclusive_total, inbound_person, #{id,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, #{inboundTime,jdbcType=TIMESTAMP}, #{inboundBatch,jdbcType=VARCHAR}, #{supplierName,jdbcType=VARCHAR}, #{inboundQuantity,jdbcType=INTEGER}, #{taxInclusivePrice,jdbcType=DECIMAL}, #{taxInclusiveTotal,jdbcType=DECIMAL}, #{taxRate,jdbcType=DECIMAL}, #{taxExclusiveTotal,jdbcType=DECIMAL}, #{inboundPerson,jdbcType=VARCHAR}, update stock_in product_id = #{productId,jdbcType=INTEGER}, inbound_time = #{inboundTime,jdbcType=TIMESTAMP}, inbound_batch = #{inboundBatch,jdbcType=VARCHAR}, supplier_name = #{supplierName,jdbcType=VARCHAR}, inbound_quantity = #{inboundQuantity,jdbcType=INTEGER}, tax_inclusive_price = #{taxInclusivePrice,jdbcType=DECIMAL}, tax_inclusive_total = #{taxInclusiveTotal,jdbcType=DECIMAL}, tax_rate = #{taxRate,jdbcType=DECIMAL}, tax_exclusive_total = #{taxExclusiveTotal,jdbcType=DECIMAL}, inbound_person = #{inboundPerson,jdbcType=VARCHAR}, where id = #{id,jdbcType=INTEGER} update stock_in set product_id = #{productId,jdbcType=INTEGER}, inbound_time = #{inboundTime,jdbcType=TIMESTAMP}, inbound_batch = #{inboundBatch,jdbcType=VARCHAR}, supplier_name = #{supplierName,jdbcType=VARCHAR}, inbound_quantity = #{inboundQuantity,jdbcType=INTEGER}, tax_inclusive_price = #{taxInclusivePrice,jdbcType=DECIMAL}, tax_inclusive_total = #{taxInclusiveTotal,jdbcType=DECIMAL}, tax_rate = #{taxRate,jdbcType=DECIMAL}, tax_exclusive_total = #{taxExclusiveTotal,jdbcType=DECIMAL}, inbound_person = #{inboundPerson,jdbcType=VARCHAR} where id = #{id,jdbcType=INTEGER}