|
@ -75,6 +75,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
if (_count > 0) |
|
|
if (_count > 0) |
|
|
{ |
|
|
{ |
|
|
var _query= _wmsRepository.Where(p => p.State == 0 && p.Version == version); |
|
|
var _query= _wmsRepository.Where(p => p.State == 0 && p.Version == version); |
|
|
|
|
|
_wmsRepository.GetDbContext().BulkDelete(_query.ToList()); |
|
|
await _query.BatchDeleteAsync(); |
|
|
await _query.BatchDeleteAsync(); |
|
|
var _query1= _wmsRepository.Where(p => p.Version == version); |
|
|
var _query1= _wmsRepository.Where(p => p.Version == version); |
|
|
var _existLst = _query1.ToList(); |
|
|
var _existLst = _query1.ToList(); |
|
@ -127,7 +128,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
var query = _wmsRepository.Where(p => p.Version == version); |
|
|
var query = _wmsRepository.Where(p => p.Version == version); |
|
|
//_wmsRepository.GetDbContext().BulkDelete(query.ToList());
|
|
|
_wmsRepository.GetDbContext().BulkDelete(query.ToList()); |
|
|
await query.BatchDeleteAsync(); |
|
|
await query.BatchDeleteAsync(); |
|
|
List<WmsDetailReport> _lst = new List<WmsDetailReport>(); |
|
|
List<WmsDetailReport> _lst = new List<WmsDetailReport>(); |
|
|
if (_ls != null && _ls.Count() > 0) |
|
|
if (_ls != null && _ls.Count() > 0) |
|
|