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