insert into purchase_apply_stock(id, apply_order_id, purchase_times, purchase_quantity, purchase_price, purchase_amount, total_quantity_john, payable_amount_john, payment_times, payment_total_amount, unpaid_amount_john, unhappen_john, stock_quantity, use_quantity, surplus_quantity, price_john, surplus_amount, keeper_john) values (#{id}, #{applyOrderId}, #{purchaseTimes}, #{purchaseQuantity}, #{purchasePrice}, #{purchaseAmount}, #{totalQuantityJohn}, #{payableAmountJohn}, #{paymentTimes}, #{paymentTotalAmount}, #{unpaidAmountJohn}, #{unhappenJohn}, #{stockQuantity}, #{useQuantity}, #{surplusQuantity}, #{priceJohn}, #{surplusAmount}, #{keeperJohn}) update purchase_apply_stock t set t.apply_order_id= #{applyOrderId}, t.purchase_times= #{purchaseTimes}, t.purchase_quantity= #{purchaseQuantity}, t.purchase_price= #{purchasePrice}, t.purchase_amount= #{purchaseAmount}, t.total_quantity_john= #{totalQuantityJohn}, t.payable_amount_john= #{payableAmountJohn}, t.payment_times= #{paymentTimes}, t.payment_total_amount= #{paymentTotalAmount}, t.unpaid_amount_john= #{unpaidAmountJohn}, t.unhappen_john= #{unhappenJohn}, t.stock_quantity= #{stockQuantity}, t.use_quantity= #{useQuantity}, t.surplus_quantity= #{surplusQuantity}, t.price_john= #{priceJohn}, t.surplus_amount= #{surplusAmount}, t.keeper_john= #{keeperJohn} where 1=1 and t.id= #{id} and t.apply_order_id= #{applyOrderId}