id, pay_order_id, rlt_pay_order_id, bus_type, order_refund_id, pay_create_time, pay_finish_time,
pay_account, coll_account, pay_fee, actual_fee, serve_fee, profit_fee, pay_channel,
bill_begin_time, bill_end_time, remark, data_state, create_empid, create_date, modfiy_empid,
modfiy_date
INSERT INTO td_b_pay_blncac ( pay_order_id, rlt_pay_order_id, bus_type, order_refund_id, pay_create_time, pay_finish_time,
pay_account, coll_account, pay_fee, actual_fee, serve_fee, profit_fee, pay_channel,
bill_begin_time, bill_end_time, remark, data_state, create_empid, create_date, modfiy_empid,
modfiy_date) VALUES
( #{item.payOrderId,jdbcType=VARCHAR}, #{item.rltPayOrderId,jdbcType=VARCHAR},
#{item.busType,jdbcType=INTEGER}, #{item.orderRefundId,jdbcType=VARCHAR},
#{item.payCreateTime,jdbcType=TIMESTAMP}, #{item.payFinishTime,jdbcType=TIMESTAMP}, #{item.payAccount,jdbcType=VARCHAR},
#{item.collAccount,jdbcType=VARCHAR}, #{item.payFee,jdbcType=DECIMAL}, #{item.actualFee,jdbcType=DECIMAL},
#{item.serveFee,jdbcType=DECIMAL},#{item.profitFee,jdbcType=DECIMAL}, #{item.payChannel,jdbcType=INTEGER}, #{item.billBeginTime,jdbcType=TIMESTAMP},
#{item.billEndTime,jdbcType=TIMESTAMP}, #{item.remark,jdbcType=VARCHAR}, #{item.dataState,jdbcType=INTEGER},
#{item.createEmpid,jdbcType=VARCHAR}, #{item.createDate,jdbcType=TIMESTAMP}, #{item.modfiyEmpid,jdbcType=VARCHAR},
#{item.modfiyDate,jdbcType=TIMESTAMP})
delete from td_b_pay_blncac
where date(bill_begin_time) = date(#{billBeginTime,jdbcType=TIMESTAMP})
and pay_channel = #{payChannel,jdbcType=INTEGER}