update dapp_fund_flow set status = #{status}, version = version + 1 where id = #{id} and version = 1 and status = 1