|
@ -361,7 +361,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
} |
|
|
} |
|
|
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 (_count == 0) |
|
|
if (_count == 0 && _wmslst.Count()>0) |
|
|
{ |
|
|
{ |
|
|
var _version = new WmsJitOutPut(GuidGenerator.Create(), input.Version, _billNum, CurrentUser.Email); |
|
|
var _version = new WmsJitOutPut(GuidGenerator.Create(), input.Version, _billNum, CurrentUser.Email); |
|
|
//var _ls = new List<WmsJitOutPut>();
|
|
|
//var _ls = new List<WmsJitOutPut>();
|
|
@ -388,8 +388,6 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
job.FileName =_errinfo; |
|
|
job.FileName =_errinfo; |
|
|
await _job.UpdateAsync(job); |
|
|
await _job.UpdateAsync(job); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|