|
@ -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; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|