|
@ -95,20 +95,8 @@ namespace Win.Sfs.SettleAccount.Entities.Prices |
|
|
where itm1.Price != itm2.Price |
|
|
where itm1.Price != itm2.Price |
|
|
select new PriceList(itm2.Id, itm2.BeginDate, itm2.EndDate, itm1.Price, itm2.MaterialCode,itm2.Type, itm2.ParentId, itm2.Version); |
|
|
select new PriceList(itm2.Id, itm2.BeginDate, itm2.EndDate, itm1.Price, itm2.MaterialCode,itm2.Type, itm2.ParentId, itm2.Version); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await _repository.GetDbContext().BulkUpdateAsync(update.ToList()); |
|
|
await _repository.GetDbContext().BulkUpdateAsync(update.ToList()); |
|
|
await _repository.GetDbContext().BulkInsertAsync<PriceList>(add.ToList()); |
|
|
await _repository.GetDbContext().BulkInsertAsync<PriceList>(add.ToList()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _first = _versionRepository.FirstOrDefault(p => p.Version == version); |
|
|
var _first = _versionRepository.FirstOrDefault(p => p.Version == version); |
|
@ -118,10 +106,6 @@ namespace Win.Sfs.SettleAccount.Entities.Prices |
|
|
List<PriceListVersion> _versionList = new List<PriceListVersion>() { new PriceListVersion(GuidGenerator.Create(), DateTime.Now.Year.ToString(), DateTime.Now.Month.ToString(), version) }; |
|
|
List<PriceListVersion> _versionList = new List<PriceListVersion>() { new PriceListVersion(GuidGenerator.Create(), DateTime.Now.Year.ToString(), DateTime.Now.Month.ToString(), version) }; |
|
|
await _versionRepository.GetDbContext().BulkInsertAsync(_versionList); |
|
|
await _versionRepository.GetDbContext().BulkInsertAsync(_versionList); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return _errorList; |
|
|
return _errorList; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|