id, tradetime, appid, mchid, submch, device_no, transaction_id, out_trade_no, openid, trade_type, trade_status, bank, currency, total_fee, coupon_fee, refund_transaction_id, out_refund_no, refund_fee, refund_coupon_fee, refund_type, refund_status, productname, attach, fee, rate delete from td_b_pay_blncac_wx where id = #{id,jdbcType=INTEGER} SELECT LAST_INSERT_ID() insert into td_b_pay_blncac_wx (tradetime, appid, mchid, submch, device_no, transaction_id, out_trade_no, openid, trade_type, trade_status, bank, currency, total_fee, coupon_fee, refund_transaction_id, out_refund_no, refund_fee, refund_coupon_fee, refund_type, refund_status, productname, attach, fee, rate) values (#{tradetime,jdbcType=VARCHAR}, #{appid,jdbcType=VARCHAR}, #{mchid,jdbcType=VARCHAR}, #{submch,jdbcType=VARCHAR}, #{deviceNo,jdbcType=VARCHAR}, #{transactionId,jdbcType=VARCHAR}, #{outTradeNo,jdbcType=VARCHAR}, #{openid,jdbcType=VARCHAR}, #{tradeType,jdbcType=VARCHAR}, #{tradeStatus,jdbcType=VARCHAR}, #{bank,jdbcType=VARCHAR}, #{currency,jdbcType=VARCHAR}, #{totalFee,jdbcType=VARCHAR}, #{couponFee,jdbcType=VARCHAR}, #{refundTransactionId,jdbcType=VARCHAR}, #{outRefundNo,jdbcType=VARCHAR}, #{refundFee,jdbcType=VARCHAR}, #{refundCouponFee,jdbcType=VARCHAR}, #{refundType,jdbcType=VARCHAR}, #{refundStatus,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, #{attach,jdbcType=VARCHAR}, #{fee,jdbcType=VARCHAR}, #{rate,jdbcType=VARCHAR}) SELECT LAST_INSERT_ID() insert into td_b_pay_blncac_wx tradetime, appid, mchid, submch, device_no, transaction_id, out_trade_no, openid, trade_type, trade_status, bank, currency, total_fee, coupon_fee, refund_transaction_id, out_refund_no, refund_fee, refund_coupon_fee, refund_type, refund_status, productname, attach, fee, rate, #{tradetime,jdbcType=VARCHAR}, #{appid,jdbcType=VARCHAR}, #{mchid,jdbcType=VARCHAR}, #{submch,jdbcType=VARCHAR}, #{deviceNo,jdbcType=VARCHAR}, #{transactionId,jdbcType=VARCHAR}, #{outTradeNo,jdbcType=VARCHAR}, #{openid,jdbcType=VARCHAR}, #{tradeType,jdbcType=VARCHAR}, #{tradeStatus,jdbcType=VARCHAR}, #{bank,jdbcType=VARCHAR}, #{currency,jdbcType=VARCHAR}, #{totalFee,jdbcType=VARCHAR}, #{couponFee,jdbcType=VARCHAR}, #{refundTransactionId,jdbcType=VARCHAR}, #{outRefundNo,jdbcType=VARCHAR}, #{refundFee,jdbcType=VARCHAR}, #{refundCouponFee,jdbcType=VARCHAR}, #{refundType,jdbcType=VARCHAR}, #{refundStatus,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, #{attach,jdbcType=VARCHAR}, #{fee,jdbcType=VARCHAR}, #{rate,jdbcType=VARCHAR}, update td_b_pay_blncac_wx tradetime = #{tradetime,jdbcType=VARCHAR}, appid = #{appid,jdbcType=VARCHAR}, mchid = #{mchid,jdbcType=VARCHAR}, submch = #{submch,jdbcType=VARCHAR}, device_no = #{deviceNo,jdbcType=VARCHAR}, transaction_id = #{transactionId,jdbcType=VARCHAR}, out_trade_no = #{outTradeNo,jdbcType=VARCHAR}, openid = #{openid,jdbcType=VARCHAR}, trade_type = #{tradeType,jdbcType=VARCHAR}, trade_status = #{tradeStatus,jdbcType=VARCHAR}, bank = #{bank,jdbcType=VARCHAR}, currency = #{currency,jdbcType=VARCHAR}, total_fee = #{totalFee,jdbcType=VARCHAR}, coupon_fee = #{couponFee,jdbcType=VARCHAR}, refund_transaction_id = #{refundTransactionId,jdbcType=VARCHAR}, out_refund_no = #{outRefundNo,jdbcType=VARCHAR}, refund_fee = #{refundFee,jdbcType=VARCHAR}, refund_coupon_fee = #{refundCouponFee,jdbcType=VARCHAR}, refund_type = #{refundType,jdbcType=VARCHAR}, refund_status = #{refundStatus,jdbcType=VARCHAR}, productname = #{productname,jdbcType=VARCHAR}, attach = #{attach,jdbcType=VARCHAR}, fee = #{fee,jdbcType=VARCHAR}, rate = #{rate,jdbcType=VARCHAR}, where id = #{id,jdbcType=INTEGER} update td_b_pay_blncac_wx set tradetime = #{tradetime,jdbcType=VARCHAR}, appid = #{appid,jdbcType=VARCHAR}, mchid = #{mchid,jdbcType=VARCHAR}, submch = #{submch,jdbcType=VARCHAR}, device_no = #{deviceNo,jdbcType=VARCHAR}, transaction_id = #{transactionId,jdbcType=VARCHAR}, out_trade_no = #{outTradeNo,jdbcType=VARCHAR}, openid = #{openid,jdbcType=VARCHAR}, trade_type = #{tradeType,jdbcType=VARCHAR}, trade_status = #{tradeStatus,jdbcType=VARCHAR}, bank = #{bank,jdbcType=VARCHAR}, currency = #{currency,jdbcType=VARCHAR}, total_fee = #{totalFee,jdbcType=VARCHAR}, coupon_fee = #{couponFee,jdbcType=VARCHAR}, refund_transaction_id = #{refundTransactionId,jdbcType=VARCHAR}, out_refund_no = #{outRefundNo,jdbcType=VARCHAR}, refund_fee = #{refundFee,jdbcType=VARCHAR}, refund_coupon_fee = #{refundCouponFee,jdbcType=VARCHAR}, refund_type = #{refundType,jdbcType=VARCHAR}, refund_status = #{refundStatus,jdbcType=VARCHAR}, productname = #{productname,jdbcType=VARCHAR}, attach = #{attach,jdbcType=VARCHAR}, fee = #{fee,jdbcType=VARCHAR}, rate = #{rate,jdbcType=VARCHAR} where id = #{id,jdbcType=INTEGER}