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