34 lines
828 B
Java
34 lines
828 B
Java
|
|
package com.ff.quartz.task;
|
||
|
|
|
||
|
|
|
||
|
|
import com.ff.common.domain.TenantGameQuota;
|
||
|
|
import com.ff.common.service.ITenantGameQuotaService;
|
||
|
|
import lombok.extern.slf4j.Slf4j;
|
||
|
|
import org.springframework.stereotype.Component;
|
||
|
|
|
||
|
|
import javax.annotation.Resource;
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 租户配额任务
|
||
|
|
*
|
||
|
|
* @author shi
|
||
|
|
* @date 2025/02/22
|
||
|
|
*/
|
||
|
|
@Slf4j
|
||
|
|
@Component("tenantQuotaTask")
|
||
|
|
public class TenantQuotaTask {
|
||
|
|
|
||
|
|
@Resource
|
||
|
|
private ITenantGameQuotaService tenantGameQuotaService;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 更新租户实际配额
|
||
|
|
*/
|
||
|
|
// public void updateTenantRealQuota() {
|
||
|
|
// List<TenantGameQuota> tenantGameQuotas = tenantGameQuotaService.selectTenantGameQuotaList(TenantGameQuota.builder()
|
||
|
|
// .quotaType(TenantGameQuota.TenantQuotaType.TENANT_REAL_QUOTA.getCode())
|
||
|
|
// .build());
|
||
|
|
// }
|
||
|
|
}
|