using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks; using CoreCms.Net.Model.Entities; using CoreCms.Net.Model.ViewModels.Basics; using CoreCms.Net.Model.ViewModels.UI; using SqlSugar; namespace CoreCms.Net.IRepository { /// /// 经销商订单记录表 工厂接口 /// public interface ICoreCmsDistributionOrderRepository : IBaseRepository { /// /// 重写根据条件查询分页数据 /// /// 判断集合 /// 排序方式 /// 当前页面索引 /// 分布大小 /// /// 是否使用WITH(NOLOCK) /// Task> QueryPageAsync( Expression> predicate, Expression> orderByExpression, OrderByType orderByType, int pageIndex = 1, int pageSize = 20, bool blUseNoLock = false); /// /// 获取下级推广订单数量 /// /// 父类序列 /// 1获取1级,其他为2级,0为全部 /// 显示当月 /// Task QueryChildOrderCountAsync(int parentId, int type = 1, bool thisMonth = false); /// /// 获取下级推广订单金额 /// /// 父类序列 /// 1获取1级,其他为2级,0为全部 /// 显示当月 /// Task QueryChildOrderMoneySumAsync(int parentId, int type = 1, bool thisMonth = false); } }