4d6d77531d
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 15m3s
- SP sp_CalculateWeeklyBalances: added @PackageId, @InputMaxBalancesPerLeg, @InputMaxNetworkLevel params; filters by PackageId - SP sp_CalculateWeeklyCommissionPool: added @PackageId param; all queries filter by PackageId/WeeklyPoolId for isolation - ICommissionCalculationStrategy: added optional PackageId param to both methods - StoredProcedureCommissionCalculationStrategy: loops per-package for both Balance and Pool methods; filters by packageId if provided - OrmCommissionCalculationStrategy: signature updated to match interface - TriggerWeeklyCalculationCommand: added PackageId optional field - TriggerWeeklyCalculationCommandHandler: passes PackageId to strategy - GetWeeklyCommissionPoolQuery: added optional PackageId filter - GetWeeklyCommissionPoolQueryHandler: filters pool by PackageId if provided - GetAllWeeklyPoolsQuery/Handler/DTO: added PackageId filter + PackageTitle in response - Proto commission.proto: added package_id to TriggerWeeklyCalculationRequest, GetWeeklyCommissionPoolRequest, WeeklyCommissionPoolModel, GetWeeklyCommissionPoolResponse, GetAllWeeklyPoolsRequest - CommissionProfile: added explicit mappings for TriggerWeeklyCalculation, GetWeeklyCommissionPool, GetAllWeeklyPools Fixes: SP picks wrong pool when multiple packages per week Fixes: SP ignores PackageId on ForceRecalculate (now uses WeeklyPoolId) Fixes: Zero-balance pools not fully recorded (now sets TotalBalances=0, ValuePerBalance=0)
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
namespace CMSMicroservice.Application.CommissionCQ.Queries.GetAllWeeklyPools;
|
|
|
|
/// <summary>
|
|
/// Query برای دریافت لیست تمام استخرهای کمیسیون هفتگی
|
|
/// </summary>
|
|
public record GetAllWeeklyPoolsQuery : IRequest<GetAllWeeklyPoolsResponseDto>
|
|
{
|
|
/// <summary>
|
|
/// از هفته — WeekDefinitionId (فیلتر اختیاری)
|
|
/// </summary>
|
|
public long? FromWeekDefinitionId { get; init; }
|
|
|
|
/// <summary>
|
|
/// تا هفته — WeekDefinitionId (فیلتر اختیاری)
|
|
/// </summary>
|
|
public long? ToWeekDefinitionId { get; init; }
|
|
|
|
/// <summary>
|
|
/// فقط Pool های محاسبه شده
|
|
/// </summary>
|
|
public bool? OnlyCalculated { get; init; }
|
|
|
|
/// <summary>
|
|
/// فیلتر بر اساس پکیج (اختیاری)
|
|
/// </summary>
|
|
public long? PackageId { get; init; }
|
|
|
|
/// <summary>
|
|
/// شماره صفحه
|
|
/// </summary>
|
|
public int PageIndex { get; init; } = 1;
|
|
|
|
/// <summary>
|
|
/// تعداد در صفحه
|
|
/// </summary>
|
|
public int PageSize { get; init; } = 10;
|
|
}
|