insert into bus_pay(uuid,release_uuid,fee_type,mch_id,nonce_str,out_trade_no,total_fee,trade_type,prepay_id,open_id,time_end,jdrq,code_url,body,pay_type)
values(#{uuid},#{releaseUuid},#{feeType},#{mchId},#{nonceStr},#{outTradeNo},#{totalFee},#{tradeType},#{prepayId},#{openId},#{timeEnd},CONVERT(VARCHAR(100), SYSDATETIME(), 20),#{codeUrl},#{body},#{payType})
update sys_supplier set offer_num = (select offer_num + ${offerNum} from sys_supplier where code = #{code}) where code = #{code}
update sys_supplier set offer_num = (select offer_num from sys_supplier where code = #{code}) where account_associated = #{code}
update bus_buy_offer_num set pay_amount = #{payAmount},pay_type=#{payType} where code = #{code} and uuid = #{uuid}
update bus_top_up_record set jdrq = CONVERT(VARCHAR(100), SYSDATETIME(), 20),total_fee=#{totalFee},pay_type=#{payType} where code = #{code} and uuid = #{uuid}
UPDATE sys_supplier
SET balance_of = (SELECT balance_of + ${totalFee} FROM sys_supplier WHERE code = #{code})
WHERE
code = #{code}
UPDATE sys_supplier
SET balance_of = (SELECT balance_of FROM sys_supplier WHERE code = #{code})
WHERE
account_associated = #{code}
update bus_private_ordering_type set order_type = #{orderType} where code = #{code} and demand_uuid = #{demandUuid}
UPDATE sys_supplier
SET offer_num = ( SELECT offer_num + 1 FROM sys_supplier WHERE code = #{code} )
WHERE
code = #{code}
UPDATE sys_supplier
SET offer_num = ( SELECT offer_num FROM sys_supplier WHERE code = #{code} )
WHERE
account_associated = #{code}
update bus_refund set refund_state = #{refundState} where release_uuid = #{releUuid}
insert into bus_buy_offer_num(uuid,jdrq,pay_amount,offer_num,code,pay_type)
values(#{uuid},CONVERT(VARCHAR(100), SYSDATETIME(), 20),#{payAmount},#{offerNum},#{code},#{payType})
insert into bus_top_up_record(uuid,code,jdrq,total_fee,pay_type) values(#{uuid},#{code},CONVERT(VARCHAR(100), SYSDATETIME(), 20),#{totalFee},#{payType})
insert into bus_withdrawal(uuid,jdrq,amount,out_trade_no,code,name,account,card)
values(#{uuid},SYSDATETIME(),#{amount},#{outTradeNo},#{code},#{name},#{account},#{card})
UPDATE sys_supplier
SET balance_of = ( SELECT balance_of - ${amount} FROM sys_supplier WHERE code = #{code} )
WHERE
code = #{code}
UPDATE sys_supplier
SET balance_of = ( SELECT balance_of + ${balanceOf} FROM sys_supplier WHERE code = #{code} )
WHERE
code = #{code}
UPDATE sys_supplier
SET balance_of = ( SELECT balance_of FROM sys_supplier WHERE code = #{code} )
WHERE
account_associated = #{code}
UPDATE sys_supplier
SET balance_of = #{bigDecimal2}
WHERE
code = #{code}
insert into bus_pay(uuid,release_uuid,fee_type,mch_id,nonce_str,out_trade_no,total_fee,trade_type,prepay_id,open_id,time_end,jdrq,code_url,body)
values(#{uuid},#{releaseUuid},#{feeType},#{mchId},#{nonceStr},#{outTradeNo},#{totalFee},#{tradeType},#{prepayId},#{openId},#{timeEnd},CONVERT(VARCHAR(100), SYSDATETIME(), 20),#{codeUrl},#{body})
delete from bus_pay where release_uuid = #{releaseUuid}
UPDATE sys_users
SET balance_of = ( SELECT balance_of - ${amount} FROM sys_users WHERE code = #{code} )
WHERE
code = #{code}