INSERT INTO
eb_huifu_wallet_account_detail
(id,create_time,trade_date,trade_flow_no,flow_no,accounts_deal_type,accounts_deal_date,amount,balance
,direction,hand_status,create_date,service_type,trade_type,account_in,account_out,account_in_name,account_out_name,memo,uni_id)
VALUES
(#{item.id},now(),#{item.tradeDate},#{item.tradeFlowNo},#{item.flowNo}
,#{item.accountsDealType},#{item.accountsDealDate},#{item.amount},#{item.balance}
,#{item.direction},#{item.handStatus},#{item.createDate},#{item.serviceType},#{item.tradeType}
,#{item.accountIn},#{item.accountOut},#{item.accountInName},#{item.accountOutName},#{item.memo},#{item.uniId})
update eb_huifu_wallet_account_detail
set voucher_url = #{voucherUrl}
where trade_flow_no = #{tradeFlowNo}
update eb_huifu_wallet_account_detail
set voucher_url = #{voucherUrl}
where id = #{id} AND trade_flow_no = #{tradeFlowNo}