and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
id, tradetime, org_id, 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, data_state, create_date
delete from td_b_pay_blncac_wx
where id = #{id,jdbcType=INTEGER}
delete from td_b_pay_blncac_wx
SELECT LAST_INSERT_ID()
insert into td_b_pay_blncac_wx (tradetime, org_id, 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, data_state, create_date
)
values (#{tradetime,jdbcType=VARCHAR}, #{orgId,jdbcType=BIGINT}, #{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}, #{dataState,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}
)
SELECT LAST_INSERT_ID()
insert into td_b_pay_blncac_wx
tradetime,
org_id,
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,
data_state,
create_date,
#{tradetime,jdbcType=VARCHAR},
#{orgId,jdbcType=BIGINT},
#{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},
#{dataState,jdbcType=INTEGER},
#{createDate,jdbcType=TIMESTAMP},
update td_b_pay_blncac_wx
id = #{record.id,jdbcType=INTEGER},
tradetime = #{record.tradetime,jdbcType=VARCHAR},
org_id = #{record.orgId,jdbcType=BIGINT},
appid = #{record.appid,jdbcType=VARCHAR},
mchid = #{record.mchid,jdbcType=VARCHAR},
submch = #{record.submch,jdbcType=VARCHAR},
device_no = #{record.deviceNo,jdbcType=VARCHAR},
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
out_trade_no = #{record.outTradeNo,jdbcType=VARCHAR},
openid = #{record.openid,jdbcType=VARCHAR},
trade_type = #{record.tradeType,jdbcType=VARCHAR},
trade_status = #{record.tradeStatus,jdbcType=VARCHAR},
bank = #{record.bank,jdbcType=VARCHAR},
currency = #{record.currency,jdbcType=VARCHAR},
total_fee = #{record.totalFee,jdbcType=VARCHAR},
coupon_fee = #{record.couponFee,jdbcType=VARCHAR},
refund_transaction_id = #{record.refundTransactionId,jdbcType=VARCHAR},
out_refund_no = #{record.outRefundNo,jdbcType=VARCHAR},
refund_fee = #{record.refundFee,jdbcType=VARCHAR},
refund_coupon_fee = #{record.refundCouponFee,jdbcType=VARCHAR},
refund_type = #{record.refundType,jdbcType=VARCHAR},
refund_status = #{record.refundStatus,jdbcType=VARCHAR},
productname = #{record.productname,jdbcType=VARCHAR},
attach = #{record.attach,jdbcType=VARCHAR},
fee = #{record.fee,jdbcType=VARCHAR},
rate = #{record.rate,jdbcType=VARCHAR},
data_state = #{record.dataState,jdbcType=INTEGER},
create_date = #{record.createDate,jdbcType=TIMESTAMP},
update td_b_pay_blncac_wx
set id = #{record.id,jdbcType=INTEGER},
tradetime = #{record.tradetime,jdbcType=VARCHAR},
org_id = #{record.orgId,jdbcType=BIGINT},
appid = #{record.appid,jdbcType=VARCHAR},
mchid = #{record.mchid,jdbcType=VARCHAR},
submch = #{record.submch,jdbcType=VARCHAR},
device_no = #{record.deviceNo,jdbcType=VARCHAR},
transaction_id = #{record.transactionId,jdbcType=VARCHAR},
out_trade_no = #{record.outTradeNo,jdbcType=VARCHAR},
openid = #{record.openid,jdbcType=VARCHAR},
trade_type = #{record.tradeType,jdbcType=VARCHAR},
trade_status = #{record.tradeStatus,jdbcType=VARCHAR},
bank = #{record.bank,jdbcType=VARCHAR},
currency = #{record.currency,jdbcType=VARCHAR},
total_fee = #{record.totalFee,jdbcType=VARCHAR},
coupon_fee = #{record.couponFee,jdbcType=VARCHAR},
refund_transaction_id = #{record.refundTransactionId,jdbcType=VARCHAR},
out_refund_no = #{record.outRefundNo,jdbcType=VARCHAR},
refund_fee = #{record.refundFee,jdbcType=VARCHAR},
refund_coupon_fee = #{record.refundCouponFee,jdbcType=VARCHAR},
refund_type = #{record.refundType,jdbcType=VARCHAR},
refund_status = #{record.refundStatus,jdbcType=VARCHAR},
productname = #{record.productname,jdbcType=VARCHAR},
attach = #{record.attach,jdbcType=VARCHAR},
fee = #{record.fee,jdbcType=VARCHAR},
rate = #{record.rate,jdbcType=VARCHAR},
data_state = #{record.dataState,jdbcType=INTEGER},
create_date = #{record.createDate,jdbcType=TIMESTAMP}
update td_b_pay_blncac_wx
tradetime = #{tradetime,jdbcType=VARCHAR},
org_id = #{orgId,jdbcType=BIGINT},
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},
data_state = #{dataState,jdbcType=INTEGER},
create_date = #{createDate,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=INTEGER}
update td_b_pay_blncac_wx
set tradetime = #{tradetime,jdbcType=VARCHAR},
org_id = #{orgId,jdbcType=BIGINT},
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},
data_state = #{dataState,jdbcType=INTEGER},
create_date = #{createDate,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}