feat: 套餐到期分布与到期租户筛选

This commit is contained in:
2025-12-15 21:46:20 +08:00
parent 7ff66cd8e7
commit 2ed814fbe7
5 changed files with 107 additions and 9 deletions

View File

@@ -34,4 +34,19 @@ public sealed class TenantPackageUsageDto
/// ARRAnnual Recurring Revenue粗看按“当前有效订阅数 × 套餐年付等效价”估算。
/// </summary>
public decimal Arr { get; init; }
/// <summary>
/// 未来 7 天内到期的使用租户数量(按租户去重,以当前时间为准,口径:有效订阅)。
/// </summary>
public int ExpiringTenantCount7Days { get; init; }
/// <summary>
/// 未来 15 天内到期的使用租户数量(按租户去重,以当前时间为准,口径:有效订阅)。
/// </summary>
public int ExpiringTenantCount15Days { get; init; }
/// <summary>
/// 未来 30 天内到期的使用租户数量(按租户去重,以当前时间为准,口径:有效订阅)。
/// </summary>
public int ExpiringTenantCount30Days { get; init; }
}