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,
trade_time,
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
insert into td_b_pay_blncac_wx_transfer
(
trade_time,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
(
#{item.tradeTime,jdbcType=TIMESTAMP},
#{item.orgId,jdbcType=BIGINT},
#{item.appid,jdbcType=VARCHAR},
#{item.mchid,jdbcType=VARCHAR},
#{item.submch,jdbcType=VARCHAR},
#{item.deviceNo,jdbcType=VARCHAR},
#{item.transactionId,jdbcType=VARCHAR},
#{item.outTradeNo,jdbcType=VARCHAR},
#{item.openid,jdbcType=VARCHAR},
#{item.tradeType,jdbcType=INTEGER},
#{item.tradeStatus,jdbcType=INTEGER},
#{item.bank,jdbcType=VARCHAR},
#{item.currency,jdbcType=VARCHAR},
#{item.totalFee,jdbcType=BIGINT},
#{item.couponFee,jdbcType=BIGINT},
#{item.refundTransactionId,jdbcType=VARCHAR},
#{item.outRefundNo,jdbcType=VARCHAR},
#{item.refundFee,jdbcType=BIGINT},
#{item.refundCouponFee,jdbcType=BIGINT},
#{item.refundType,jdbcType=INTEGER},
#{item.refundStatus,jdbcType=INTEGER},
#{item.productname,jdbcType=VARCHAR},
#{item.attach,jdbcType=VARCHAR},
#{item.fee,jdbcType=BIGINT},
#{item.rate,jdbcType=VARCHAR},
#{item.dataState,jdbcType=INTEGER},
#{item.createDate,jdbcType=TIMESTAMP}
)
DELETE FROM td_b_pay_blncac_wx_transfer
1=2
DATE(trade_time) >= DATE(#{tradeTime})
AND
DATE(trade_time) < date_sub(DATE(#{tradeTime}),interval -1 day)