|
@ -99,6 +99,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
|
|
|
|
|
|
private async Task<long> GetCountAsync(WmsSharePartOutPutDetialRequestDto input) |
|
|
private async Task<long> GetCountAsync(WmsSharePartOutPutDetialRequestDto 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); |
|
|
return await _wmsRepository.GetCountByFilterAsync(GuidGenerator.Create(), input.Filters); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -186,8 +187,6 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
var _list = _excelHelper.ExcelToList<WmsSharePartOutPutDetial>(); |
|
|
var _list = _excelHelper.ExcelToList<WmsSharePartOutPutDetial>(); |
|
|
if (_list.Count() > 0) |
|
|
if (_list.Count() > 0) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _lsAry = _list.Select(p => new |
|
|
var _lsAry = _list.Select(p => new |
|
|
WmsSharePartOutPutDetial( |
|
|
WmsSharePartOutPutDetial( |
|
|
GuidGenerator.Create(), |
|
|
GuidGenerator.Create(), |
|
@ -253,13 +252,6 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
string.Empty, |
|
|
string.Empty, |
|
|
p.Qty |
|
|
p.Qty |
|
|
)).ToList(); |
|
|
)).ToList(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await _wmsRepository.GetDbContext().BulkInsertAsync(_wmslst, new BulkConfig() { BulkCopyTimeout = 0, BatchSize = 10000 }); |
|
|
await _wmsRepository.GetDbContext().BulkInsertAsync(_wmslst, new BulkConfig() { BulkCopyTimeout = 0, BatchSize = 10000 }); |
|
|
int _count = _wmsVersionRepository.Count(p => p.Version == input.Version && p.BillNum == _billNum); |
|
|
int _count = _wmsVersionRepository.Count(p => p.Version == input.Version && p.BillNum == _billNum); |
|
|
if (_wmslst.Count()>0 && _count == 0) |
|
|
if (_wmslst.Count()>0 && _count == 0) |
|
|