MerchantDepositOrdersService.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using Attribute;
  2. using Dto;
  3. using Vo;
  4. using Model;
  5. using Model.Base;
  6. using Repository;
  7. using Service;
  8. using Microsoft.AspNetCore.Mvc;
  9. namespace Services
  10. {
  11. /// <summary>
  12. /// 商户服务费缴纳记录表Service业务层处理
  13. /// </summary>
  14. [AppService(ServiceType = typeof(IMerchantDepositOrdersService), ServiceLifetime = LifeTime.Transient)]
  15. public class MerchantDepositOrdersService : BaseService<MerchantDepositOrders>, IMerchantDepositOrdersService
  16. {
  17. /// <summary>
  18. /// 商户板块-工作台-已激活商户达标信息
  19. /// </summary>
  20. /// <param name="parm">请求参数</param>
  21. /// <returns>商户板块工作台-已激活商户达标信息</returns>
  22. public PagedInfo<MerchantWorkBenchModuleGetActedMerchantStandardsInfoVo> GetActedMerchantStandardsInfo([FromQuery] MerchantWorkBenchModuleGetActedMerchantStandardsInfoDto parm)
  23. {
  24. //开始拼装查询条件
  25. var predicate = Expressionable.Create<MerchantDepositOrders>();
  26. predicate = predicate.AndIF(parm.MerchantId != null, m => m.MerchantId == parm.MerchantId);
  27. var response = Queryable()
  28. .Where(predicate.ToExpression())
  29. .ToPage<MerchantDepositOrders, MerchantWorkBenchModuleGetActedMerchantStandardsInfoVo>(new PagerInfo());
  30. return response;
  31. }
  32. }
  33. }