From d739f66a7653ac190b029dd396529283c9b2e91e Mon Sep 17 00:00:00 2001 From: zhengyuxuan <zhengyuxuan1995> Date: 星期三, 02 四月 2025 15:25:32 +0800 Subject: [PATCH] fix:渠道筛选 --- LifePayment/LifePayment.Host/LifePaymentServices.Application.Contracts.xml | 50 +++++++++++++++++++++++++ LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs | 4 +- LifePayment/LifePayment.Application.Contracts/LifePay/ILifePayService.cs | 2 LifePayment/LifePayment.Application.Contracts/LifePay/LifePayInput.cs | 5 ++ LifePayment/LifePayment.Host/LifePaymentService.HttpApi.xml | 2 LifePayment/LifePayment.Application/LifePay/LifePayService.cs | 4 +- 6 files changed, 61 insertions(+), 6 deletions(-) diff --git a/LifePayment/LifePayment.Application.Contracts/LifePay/ILifePayService.cs b/LifePayment/LifePayment.Application.Contracts/LifePay/ILifePayService.cs index 5bdad15..cd98ea9 100644 --- a/LifePayment/LifePayment.Application.Contracts/LifePay/ILifePayService.cs +++ b/LifePayment/LifePayment.Application.Contracts/LifePay/ILifePayService.cs @@ -243,7 +243,7 @@ /// <returns></returns> Task<PageOutput<CreateEditPayChannelsInput>> GetLifePayChannlesPage(PageInput input); - Task<List<CreateEditPayChannelsInput>> GetLifePayChannlesAllList(); + Task<List<CreateEditPayChannelsInput>> GetLifePayChannlesAllList(QueryLifePayChannlesInput input); Task<CreateEditPayChannelsInput> GetLifePayChannlesDto(Guid id); diff --git a/LifePayment/LifePayment.Application.Contracts/LifePay/LifePayInput.cs b/LifePayment/LifePayment.Application.Contracts/LifePay/LifePayInput.cs index 86bb711..72868d6 100644 --- a/LifePayment/LifePayment.Application.Contracts/LifePay/LifePayInput.cs +++ b/LifePayment/LifePayment.Application.Contracts/LifePay/LifePayInput.cs @@ -858,4 +858,9 @@ public class TopStatisticsInput { public List<string>? ChannleList { get; set; } +} + +public class QueryLifePayChannlesInput +{ + public LifePayChannelsStatsEnum? Status { get; set; } } \ No newline at end of file diff --git a/LifePayment/LifePayment.Application/LifePay/LifePayService.cs b/LifePayment/LifePayment.Application/LifePay/LifePayService.cs index 53b7619..95f10f7 100644 --- a/LifePayment/LifePayment.Application/LifePay/LifePayService.cs +++ b/LifePayment/LifePayment.Application/LifePay/LifePayService.cs @@ -607,9 +607,9 @@ return await GetLifePayChannlesListFilter().GetPageResult(input.PageModel); } - public async Task<List<CreateEditPayChannelsInput>> GetLifePayChannlesAllList() + public async Task<List<CreateEditPayChannelsInput>> GetLifePayChannlesAllList(QueryLifePayChannlesInput input) { - return await GetLifePayChannlesListFilter().ToListAsync(); + return await GetLifePayChannlesListFilter().WhereIf(input.Status.HasValue,x => x.Status == input.Status).ToListAsync(); } public async Task<CreateEditPayChannelsInput> GetLifePayChannlesDto(Guid id) diff --git a/LifePayment/LifePayment.Host/LifePaymentService.HttpApi.xml b/LifePayment/LifePayment.Host/LifePaymentService.HttpApi.xml index 47f543b..e908e5a 100644 --- a/LifePayment/LifePayment.Host/LifePaymentService.HttpApi.xml +++ b/LifePayment/LifePayment.Host/LifePaymentService.HttpApi.xml @@ -220,7 +220,7 @@ <param name="input"></param> <returns></returns> </member> - <member name="M:LifePayment.HttpApi.LifePayController.GetLifePayChannlesAllList"> + <member name="M:LifePayment.HttpApi.LifePayController.GetLifePayChannlesAllList(LifePayment.Application.Contracts.QueryLifePayChannlesInput)"> <summary> 鑾峰彇鍏ㄩ儴缂磋垂娓犻亾 </summary> diff --git a/LifePayment/LifePayment.Host/LifePaymentServices.Application.Contracts.xml b/LifePayment/LifePayment.Host/LifePaymentServices.Application.Contracts.xml index e047d10..1b32623 100644 --- a/LifePayment/LifePayment.Host/LifePaymentServices.Application.Contracts.xml +++ b/LifePayment/LifePayment.Host/LifePaymentServices.Application.Contracts.xml @@ -814,6 +814,56 @@ 浜ゆ槗閲戦 </summary> </member> + <member name="P:LifePayment.Application.Contracts.AddLifePayChannlesRakeReceiptsInput.PlatformRate"> + <summary> + 骞冲彴鎶樻墸姣斾緥 + </summary> + </member> + <member name="P:LifePayment.Application.Contracts.AddLifePayChannlesRakeReceiptsInput.ChannleRate"> + <summary> + 娓犻亾鎶樻墸 + </summary> + </member> + <member name="P:LifePayment.Application.Contracts.AddLifePayChannlesRakeReceiptsInput.RechargeAmount"> + <summary> + 鍏呭�奸噾棰� + </summary> + </member> + <member name="P:LifePayment.Application.Contracts.AddLifePayChannlesRakeReceiptsInput.OrderNo"> + <summary> + 骞冲彴璁㈠崟鍙� + </summary> + </member> + <member name="P:LifePayment.Application.Contracts.AddLifePayChannlesRakeReceiptsInput.PayAmount"> + <summary> + 鎴愪氦閲戦 + </summary> + </member> + <member name="P:LifePayment.Application.Contracts.AddLifePayChannlesRakeReceiptsInput.ChannlesRakeRate"> + <summary> + 娓犻亾浣i噾姣斾緥 + </summary> + </member> + <member name="P:LifePayment.Application.Contracts.AddLifePayChannlesRakeReceiptsInput.ChannlesRakePrice"> + <summary> + 浣i噾 + </summary> + </member> + <member name="P:LifePayment.Application.Contracts.AddLifePayChannlesRakeReceiptsInput.FinishTime"> + <summary> + 缁撶畻鏃堕棿 + </summary> + </member> + <member name="P:LifePayment.Application.Contracts.AddLifePayChannlesRakeReceiptsInput.ExtraProperties"> + <summary> + 鎷撳睍灞炴�� + </summary> + </member> + <member name="P:LifePayment.Application.Contracts.AddLifePayChannlesRakeReceiptsInput.ChannelId"> + <summary> + 涓嬪崟娓犻亾 + </summary> + </member> <member name="P:LifePayment.Application.Contracts.LifePayExpensesReceiptsPageInput.KeyWord"> <summary> 鏌ヨ鏉′欢 diff --git a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs index 138a122..5d60713 100644 --- a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs +++ b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs @@ -349,9 +349,9 @@ /// 鑾峰彇鍏ㄩ儴缂磋垂娓犻亾 /// </summary> [HttpGet] - public async Task<List<CreateEditPayChannelsInput>> GetLifePayChannlesAllList() + public async Task<List<CreateEditPayChannelsInput>> GetLifePayChannlesAllList(QueryLifePayChannlesInput input) { - return await _lifePayService.GetLifePayChannlesAllList(); + return await _lifePayService.GetLifePayChannlesAllList(input); } /// <summary> -- Gitblit v1.9.1