select current_balance from hs_fund.fundreal a where a.client_id =#{userId}
</select>
<updateid="freezeAmount">
update hs_fund.fundreal set current_balance =current_balance-#{amount},enable_balance=enable_balance-#{amount} ,frozen_balance=#{amount} where client_id = #{userId}