|
@ -123,7 +123,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
|
|
|
|
|
|
private async Task<long> GetCountAsync(WmsRequestDetailReportDto input) |
|
|
private async Task<long> GetCountAsync(WmsRequestDetailReportDto input) |
|
|
{ |
|
|
{ |
|
|
|
|
|
input.Filters.Add(new FilterCondition() { Action = EnumFilterAction.Equal, Column = "Version", Logic = EnumFilterLogic.And, Value = input.Version }); |
|
|
return await _wmsRepository.GetCountByFilterAsync(GuidGenerator.Create(), input.Filters); |
|
|
return await _wmsRepository.GetCountByFilterAsync(GuidGenerator.Create(), input.Filters); |
|
|
} |
|
|
} |
|
|
[HttpPost] |
|
|
[HttpPost] |
|
@ -158,6 +158,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
[Route("Export")] |
|
|
[Route("Export")] |
|
|
virtual public async Task<string> ExportAsync(WmsRequestDetailReportDto input) |
|
|
virtual public async Task<string> ExportAsync(WmsRequestDetailReportDto input) |
|
|
{ |
|
|
{ |
|
|
|
|
|
input.Filters.Add(new FilterCondition() { Action = EnumFilterAction.Equal, Column = "Version", Logic = EnumFilterLogic.And, Value = input.Version }); |
|
|
var entities = await _wmsRepository.GetListByFilterAsync(GuidGenerator.Create(), input.Filters, input.Sorting, int.MaxValue, |
|
|
var entities = await _wmsRepository.GetListByFilterAsync(GuidGenerator.Create(), input.Filters, input.Sorting, int.MaxValue, |
|
|
0, true); |
|
|
0, true); |
|
|
IExporter _excel = new ExcelExporter(); |
|
|
IExporter _excel = new ExcelExporter(); |
|
|