using Attribute; using Dto; using Vo; using Model; using Model.Base; using Repository; using Service; using Microsoft.AspNetCore.Mvc; namespace Services { /// /// 消费者分红记录表Service业务层处理 /// [AppService(ServiceType = typeof(IConsumerProfitService), ServiceLifetime = LifeTime.Transient)] public class ConsumerProfitService : BaseService, IConsumerProfitService { /// /// 消费者板块-我的-分红列表 /// /// 请求参数 /// 消费者板块我的-分红列表 public PagedInfo GetConsumerProfitList([FromQuery] PagerInfo page, [FromQuery] ConsumerMySelfModuleGetConsumerProfitListDto parm) { //开始拼装查询条件 var predicate = Expressionable.Create(); predicate = predicate.AndIF(parm.PayMode != null, m => m.PayMode == parm.PayMode); var response = Queryable() .Where(predicate.ToExpression()) .ToPage(page); return response; } } }