insert into xzx_pay_info(pay_order_id,order_id,create_user_id,money,
account_id,pay_type,open_id,status,create_time,fee)
values (#{payOrderId},#{orderId},#{createUserId},#{money},
#{accountId},#{payType},#{openId},#{status},#{createTime},#{fee} )
insert into xzx_pay_request_info(pay_order_id,order_id,create_user_id,money,
account_id,pay_type,open_id,status,create_time,account_bind_id)
values (#{payOrderId},#{orderId},#{createUserId},#{money},
#{accountId},#{payType},#{openId},#{status},#{createTime},#{accountBindId} )
update xzx_account_info
set money = cast((cast(money as DECIMAL(9,2))+#{money}) as CHAR)
where user_id=#{userId} and del_flag=0 and is_prohibit='0'
insert into xzx_pay_info(pay_order_id,order_id,create_user_id,money,
account_id,pay_type,open_id,status,create_time)
select pay_order_id,order_id,create_user_id,money,
account_id,pay_type,open_id,"3",create_time
from xzx_pay_request_info
where pay_order_id=#{payOrderId} and status!="2"
update xzx_pay_request_info set status=#{status}
where pay_order_id=#{payOrderId}
update xzx_pay_info set status=#{status}
where pay_order_id=#{payOrderId}
INSERT INTO `xzx_pay_info` (`pay_order_id`, `order_id`, `create_user_id`, `money`,
`account_id`, `pay_type`, `open_id`, `status`, `create_time`, `check_num`, `pay_img`, `pay_time`)
VALUES (#{payOrderId}, NULL, #{createUserId}, #{money}, #{accountId},
'1', NULL, #{status}, SYSDATE(), NULL, #{payImg}, #{payTime})
update xzx_pay_info set
status=#{status}
, unpass_reason=#{unpassReason}
where pay_order_id=#{payOrderId}