select id, tenant_key, balance, version, create_by, create_time, update_by, update_time from ff_tenant_game_quota insert into ff_tenant_game_quota tenant_key, balance, version, create_by, create_time, update_by, update_time, #{tenantKey}, #{balance}, #{version}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update ff_tenant_game_quota tenant_key = #{tenantKey}, balance = #{balance}, version = #{version}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where id = #{id} update ff_tenant_game_quota set balance = #{balance},version =version+1 where tenant_key = #{tenantKey} and version = #{version} delete from ff_tenant_game_quota where id = #{id} delete from ff_tenant_game_quota where id in #{id}