update xzx_partner_account set hbb=cast(hbb as decimal(9,2))-#{money}
where partner_id=#{partnerId} and del_flag=0
update xzx_partner_account set hbb=cast(hbb as decimal(9,2))+#{money}
where partner_id=#{partnerId} and del_flag=0
update xzx_partner_account set
hbb=#{hbb}
, overdraft_limit=#{overdraftLimit}
where user_id=#{userId}
INSERT INTO `xzx_partner_account_log` (`account_id`, `flow_no`, `type`, `create_time`,
`money`, `account_money`, `hbb`, `user_name`, `user_phone`, `role_name`, `approver_status`, `del_flag`, `old_limit`, `manage_limit`, `new_limit`, `old_limit_fix`, `manage_limit_fix`, `new_limit_fix`)
VALUES (#{accountId}, #{flowNo}, #{type}, #{createTime}, #{money},
#{accountMoney}, #{hbb}, #{userName}, #{userPhone}, #{roleName}, #{approverStatus},
#{delFlag}, #{oldLimit}, #{manageLimit}, #{newLimit}, #{oldLimitFix}, #{manageLimitFix}, #{newLimitFix})
INSERT INTO xzx_partner_account (`user_id`, `account`, `hbb`, `del_flag`, `update_time`, `partner_id`, `overdraft_limit`, `fixed_limit`, `type`)
VALUES (#{userId}, #{account}, '0', '0', #{updateTime}, #{partnerId}, '0', '0', #{type})
UPDATE xzx_partner_account
SET
hbb = #{money}
WHERE account = #{accountId}