From 6b9333d8ba03965a221cec5ba8249900d0c3683c Mon Sep 17 00:00:00 2001 From: zhengyuxuan <zhengyuxuan1995> Date: 星期一, 07 四月 2025 11:12:02 +0800 Subject: [PATCH] fix:统计查询优化 --- LifePayment/LifePayment.Domain/Common/AbstractChannelFilter.cs | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/LifePayment/LifePayment.Domain/Common/AbstractChannelFilter.cs b/LifePayment/LifePayment.Domain/Common/AbstractChannelFilter.cs index 4c7efd3..e2fbefc 100644 --- a/LifePayment/LifePayment.Domain/Common/AbstractChannelFilter.cs +++ b/LifePayment/LifePayment.Domain/Common/AbstractChannelFilter.cs @@ -12,14 +12,16 @@ namespace LifePayment.Domain.Common { - public abstract class AbstractChannelFilter + public abstract class AbstractChannelFilter : IChannelFilter, ISingletonDependency { - public abstract Task<IQueryable<ChannelsBase>> GetChannelFilter(IQueryable<ChannelsBase> query); - - public IAbpLazyServiceProvider LazyServiceProvider { get; set; } + protected ICurrentUser CurrentUser => LazyServiceProvider.LazyGetRequiredService<ICurrentUser>(); protected IRepository<UserChannle> UserChannleRepository => LazyServiceProvider.LazyGetRequiredService<IRepository<UserChannle>>(); + + public abstract IQueryable<LifePayOrder> GetChannelLifePayOrderFilter(IQueryable<LifePayOrder> query); + + public abstract IQueryable<LifePayUser> GetChannelLifePayUserFilter(IQueryable<LifePayUser> query); } } -- Gitblit v1.9.1