diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/TaskJobs/JobAppService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/TaskJobs/JobAppService.cs index b492ede7..5624073a 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/TaskJobs/JobAppService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/TaskJobs/JobAppService.cs @@ -3,8 +3,10 @@ using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; +using Volo.Abp.Application.Dtos; using Volo.Abp.Application.Services; using Volo.Abp.Uow; +using Win.Sfs.SettleAccount.MaterialRelationships; namespace Win.Sfs.SettleAccount.Entities.TaskJobs; @@ -24,13 +26,24 @@ public class JobAppService: ApplicationService /// /// [HttpPost] - [Route("list")] + [Route("listold")] [UnitOfWork(false)] - public virtual async Task> GetListAsync(JobRequestDto input) + public virtual async Task> GetListOldAsync(JobRequestDto input) { return await _service.GetListAsync(input); } + /// + /// 根据筛选条件获取实体列表 + /// + [HttpPost] + [Route("list")] + [UnitOfWork(false)] + public virtual async Task> GetListAsync(JobRequestDto input) + { + var lists = await _service.GetListAsync(input); + return new PagedResultDto(lists.Count, lists); + } [HttpGet] [Route("{id}")]