Browse Source

加PDA list

dev_DY_CC
刘云峰 1 year ago
parent
commit
b7731a6171
  1. 3
      .gitignore
  2. 35
      be/Hosts/WmsPda.Host/Win_in.Sfs.Wms.Pda.Host/Controllers/Stores/TransferLibJobController.cs

3
.gitignore

@ -1 +1,2 @@
**/node_modules/ **/node_modules/
/be/Hosts/Wms.Host/Win_in.Sfs.Wms.Store.HttpApi.Host/Properties/PublishProfiles/FolderProfile3.pubxml

35
be/Hosts/WmsPda.Host/Win_in.Sfs.Wms.Pda.Host/Controllers/Stores/TransferLibJobController.cs

@ -1,5 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.Json;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Volo.Abp.Application.Dtos; using Volo.Abp.Application.Dtos;
@ -99,4 +100,38 @@ public class TransferLibJobController : AbpController
{ {
await _transferLibJobAppService.CancelAcceptAsync(id).ConfigureAwait(false); await _transferLibJobAppService.CancelAcceptAsync(id).ConfigureAwait(false);
} }
/// <summary>
/// 获取列表
/// </summary>
/// <param name="pageSize"></param>
/// <param name="pageIndex"></param>
/// <returns></returns>
[HttpGet("list")]
public virtual async Task<PagedResultDto<TransferLibJobDTO>> GetListAsync(int pageSize, int pageIndex)
{
//var wlgCodes = await _userWorkGroupAppService.GetCodsOfCurrentUserAsync().ConfigureAwait(false);
//var jsonCodes = JsonSerializer.Serialize(wlgCodes);
var status = new List<int>() { (int)EnumJobStatus.Open, (int)EnumJobStatus.Doing };
var jsonStatus = JsonSerializer.Serialize(status);
var request = new SfsJobRequestInputBase
{
MaxResultCount = pageSize,
SkipCount = (pageIndex - 1) * pageSize,
Sorting = $"{nameof(TransferLibJobDTO.Priority)} ASC",
Condition = new Condition
{
Filters = new List<Filter>
{
//new(nameof(TransferLibJobDTO.WorkGroupCode),jsonCodes,"In"),
new(nameof(TransferLibJobDTO.JobStatus),jsonStatus,"In")
}
}
};
var list = await _transferLibJobAppService.GetPagedListByFilterAsync(request, true).ConfigureAwait(false);
return list;
}
} }

Loading…
Cancel
Save