insert into
capital_transfer(fund_id,
custodian,
fund_name,
sum_of_money,
basis_of_payment,
apply_time,
handle_time,
status_id)
values(#{fund_id},
#{custodian},
#{fund_name},
#{sum_of_money},
#{basis_of_payment},
#{apply_time},
#{handle_time},
#{status_id})
insert into
attachment(attachment_id,
attachment_name,
url,
upload_person_id,
create_time)
values(#{attachment_id},
#{attachment_name},
#{url},
#{upload_person_id},
#{create_time})
insert into
operation_history(operator_type_id,
operator_account,
operator_role,
operator_person,
operator_time,
hash)
values(#{operator_type_id},
#{operator_account},
#{operator_role},
#{operator_person},
#{operator_time},
#{hash})
insert into capital_transfer_check(fund_id,
check_department,
check_person,
check_opinion,
check_time,
check_result,
relation)
values(#{fund_id},
#{check_department},
#{check_person},
#{check_opinion},
#{check_time},
#{check_result},
#{relation})
update
capital_transfer
set
status_id=#{statusId}
where
fund_id=#{fund_id}
update t_user set account_balance=#{account_balance} where user_id=#{user_id}
update account set money=#{money} where account_id=#{account_id}