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(IMerchantDepositOrdersService), ServiceLifetime = LifeTime.Transient)]
public class MerchantDepositOrdersService : BaseService, IMerchantDepositOrdersService
{
///
/// 商户板块-工作台-已激活商户达标信息
///
/// 请求参数
/// 商户板块工作台-已激活商户达标信息
public PagedInfo GetActedMerchantStandardsInfo([FromQuery] MerchantWorkBenchModuleGetActedMerchantStandardsInfoDto parm)
{
//开始拼装查询条件
var predicate = Expressionable.Create();
predicate = predicate.AndIF(parm.MerchantId != null, m => m.MerchantId == parm.MerchantId);
var response = Queryable()
.Where(predicate.ToExpression())
.ToPage(new PagerInfo());
return response;
}
}
}