|
|
@ -113,6 +113,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
|
|
|
|
|
virtual public async Task<PagedResultDto<WmsDetailDiffReport>> GetListAsync(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, input.MaxResultCount, |
|
|
|
input.SkipCount, true); |
|
|
|
var totalCount = await GetCountAsync(input); |
|
|
@ -122,11 +123,17 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
|
|
|
|
|
private async Task<long> GetCountAsync(WmsRequestDetailReportDto input) |
|
|
|
{ |
|
|
|
// input.Filters.Add(new FilterCondition() { Action = EnumFilterAction.Equal, Column = "BillNum", Logic = EnumFilterLogic.And, Value = input.BillNum });
|
|
|
|
|
|
|
|
return await _wmsRepository.GetCountByFilterAsync(GuidGenerator.Create(), input.Filters); |
|
|
|
} |
|
|
|
[HttpPost] |
|
|
|
[Route("Sync")] |
|
|
|
|
|
|
|
|
|
|
|
public virtual async Task<bool> SyncInterface() |
|
|
|
{ |
|
|
|
//_wmsRepository.Where(p => p.BillNum ==)
|
|
|
|
return true; |
|
|
|
} |
|
|
|
//[HttpPost]
|
|
|
|
//[Route("Output")]
|
|
|
|
|
|
|
@ -155,7 +162,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
|
0, true); |
|
|
|
IExporter _excel = new ExcelExporter(); |
|
|
|
byte[] result = null; |
|
|
|
var _fileName = string.Format("汇总合计报表_{0}.xlsx", Guid.NewGuid().ToString()); |
|
|
|
var _fileName = string.Format("差异清单报表_{0}.xlsx", Guid.NewGuid().ToString()); |
|
|
|
result = await _excel.ExportAsByteArray(entities); |
|
|
|
result.ShouldNotBeNull(); |
|
|
|
//保存导出文件到服务器存成二进制
|
|
|
|