lingling
2025-03-19 74f5570dceeb1a5a88c0a685705a9e4cc88881ce
格式化
5个文件已修改
41 ■■■■ 已修改文件
LifePayment/LifePayment.Application/LifePay/LifePayService.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LifePayment/LifePayment.Domain/Common/AbstractChannelFilter.cs 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LifePayment/LifePayment.Domain/Common/ChannelFilter.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
LifePayment/LifePayment.Domain/Common/IChannelFilter.cs 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LifePayment/LifePayment.EntityFrameworkCore/LifePaymentServicesDbContext.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LifePayment/LifePayment.Application/LifePay/LifePayService.cs
@@ -209,7 +209,6 @@
                                    })
                                    .GetPageResult(input.PageModel);
        }
    }
    /// <summary>
LifePayment/LifePayment.Domain/Common/AbstractChannelFilter.cs
@@ -14,12 +14,14 @@
{
    public abstract class AbstractChannelFilter : IChannelFilter, ISingletonDependency
    {
        public abstract IQueryable<LifePayOrder> GetChannelLifePayOrderFilter(IQueryable<LifePayOrder> query);
        public abstract IQueryable<LifePayUser> GetChannelLifePayUserFilter(IQueryable<LifePayUser> 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);
    }
}
LifePayment/LifePayment.Domain/Common/ChannelFilter.cs
@@ -18,7 +18,7 @@
{
    public class ChannelFilter : AbstractChannelFilter
    {
        public  override IQueryable<LifePayOrder> GetChannelLifePayOrderFilter(IQueryable<LifePayOrder> query)
        public override IQueryable<LifePayOrder> GetChannelLifePayOrderFilter(IQueryable<LifePayOrder> query)
        {
            if (CurrentUser.ClientId == Constant.ClientType.Back)
            {
LifePayment/LifePayment.Domain/Common/IChannelFilter.cs
@@ -7,37 +7,8 @@
{
    public interface IChannelFilter
    {
        public IQueryable<LifePayOrder> GetChannelLifePayOrderFilter(IQueryable<LifePayOrder> query);
        public IQueryable<LifePayUser> GetChannelLifePayUserFilter(IQueryable<LifePayUser> query);
        //public static IQueryable<T> GetChannleQuery<T>(this IQueryable<T> query, ChannelFilterInput input) where T : class, IChannelData
        //{
        //    if (query == null)
        //    {
        //        return query;
        //    }
        //    if (input.Channels != null && input.Channels.Any())
        //    {
        //        query = query.Where(r => input.Channels.Contains(r.ChannelId));
        //    }
        //    return query;
        //}
    }
    //public interface IChannelData
    //{
    //   public Guid ChannleId { get; set; }
    //}
    //public class ChannelFilterInput
    //{
    //    public List<Guid> Channels { get; set; } = new List<Guid>();
    //}
}
LifePayment/LifePayment.EntityFrameworkCore/LifePaymentServicesDbContext.cs
@@ -16,7 +16,6 @@
        {
        }
        public virtual DbSet<LifePayUser> LifePayUser { get; set; }
        public virtual DbSet<LifePayOrder> LifePayOrder { get; set; }