|
@ -382,13 +382,12 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
} |
|
|
} |
|
|
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 == version && p.BillNum == _billNum); |
|
|
int _count = _wmsVersionRepository.Count(p => p.Version == version && p.BillNum == _billNum); |
|
|
if (_count == 0) |
|
|
if (_count == 0 && _wmslst.Count()>0) |
|
|
{ |
|
|
{ |
|
|
var _version = new WmsWithOutKanbanOutPut(GuidGenerator.Create(), version, _billNum, CurrentUser.Email); |
|
|
var _version = new WmsWithOutKanbanOutPut(GuidGenerator.Create(), version, _billNum, CurrentUser.Email); |
|
|
await _wmsVersionRepository.InsertAsync(_version, true); |
|
|
await _wmsVersionRepository.InsertAsync(_version, true); |
|
|
} |
|
|
} |
|
|
return _billNum; |
|
|
return ApplicationConsts.SuccessStr; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|