Browse Source

更新代码

FoShanPG
Administrator 3 years ago
parent
commit
41c1b7f7b5
  1. 3
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs

3
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs

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

Loading…
Cancel
Save