|
|
|
@ -121,6 +121,11 @@ public class FlashSalePlanAppService : |
|
|
|
{ |
|
|
|
await CheckGetListPolicyAsync(); |
|
|
|
|
|
|
|
if (input.IncludeUnpublished) |
|
|
|
{ |
|
|
|
await CheckMultiStorePolicyAsync(input.StoreId, FlashSalesPermissions.FlashSalePlan.Manage); |
|
|
|
} |
|
|
|
|
|
|
|
return await base.GetListAsync(input); |
|
|
|
} |
|
|
|
|
|
|
|
@ -191,11 +196,6 @@ public class FlashSalePlanAppService : |
|
|
|
|
|
|
|
protected override async Task<IQueryable<FlashSalePlan>> CreateFilteredQueryAsync(FlashSalePlanGetListInput input) |
|
|
|
{ |
|
|
|
if (input.IncludeUnpublished) |
|
|
|
{ |
|
|
|
await CheckMultiStorePolicyAsync(input.StoreId, FlashSalesPermissions.FlashSalePlan.Manage); |
|
|
|
} |
|
|
|
|
|
|
|
return (await base.CreateFilteredQueryAsync(input)) |
|
|
|
.WhereIf(input.StoreId.HasValue, x => x.StoreId == input.StoreId.Value) |
|
|
|
.WhereIf(input.ProductId.HasValue, x => x.ProductId == input.ProductId.Value) |
|
|
|
|