123456789101112131415161718192021222324252627282930313233343536373839 |
- using Attribute;
- using Model;
- using Model.Base;
- using Repository;
- using Service;
- using Microsoft.AspNetCore.Mvc;
- using Vo.Admin;
- namespace Services
- {
-
-
-
- [AppService(ServiceType = typeof(IPriConditionService), ServiceLifetime = LifeTime.Transient)]
- public class PriConditionService : BaseService<PriCondition>, IPriConditionService
- {
-
-
-
-
-
-
- public PagedInfo<GetPriConditionListVo> getPriConditionList([FromQuery] PagerInfo page, [FromQuery] PriCondition param)
- {
-
- var predicate = Expressionable.Create<PriCondition>();
- predicate = predicate.AndIF(param.listId > 0, m => m.listId == param.listId);
- var response = Queryable()
- .Where(predicate.ToExpression())
- .OrderByDescending(m => m.id)
- .ToPage<PriCondition, GetPriConditionListVo>(page);
- return response;
- }
- }
- }
|