update xzx_partner_account set hbb=cast(hbb as decimal(9,2))+#{money}
where partner_id=#{partnerId} and del_flag=0
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})
update xzx_partner_account set
hbb=#{hbb}
, overdraft_limit=#{overdraftLimit}
where user_id=#{userId}
update xzx_partner_account
set del_flag = #{delFlag}
where user_id = #{userId} and del_flag = 0
update xzx_partner_account
set overdraft_limit = #{overdraftLimit}, fixed_limit = #{fixedLimit}
where user_id = #{userId}
UPDATE xzx_partner_account
SET
hbb = #{money}
WHERE account = #{accountId}
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
hbb=cast(hbb as decimal(9,2))+#{money},
overdraft_limit=cast(overdraft_limit as decimal(9,2))+#{overdraftLimit},
where account=#{accountId} and del_flag=0
update xzx_partner_account set overdraft_limit=#{overdraftLimit}
,hbb=cast(hbb as decimal(9,2))+#{money}
where account=#{accountId} and del_flag=0
update xzx_partner_account
hbb=cast(hbb as decimal(9,2))-#{money},
overdraft_limit=cast(overdraft_limit as decimal(9,2))-#{overdraftLimit} ,
where account=#{accountId} and del_flag=0
update xzx_partner_account set overdraft_limit='0.00'
,hbb=cast(hbb as decimal(9,2))-#{money}
where account=#{accountId} and del_flag=0