|
@ -197,7 +197,12 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
var entities = await _wmsRepository.GetListByFilterAsync(GuidGenerator.Create(), input.Filters, input.Sorting, int.MaxValue, |
|
|
var entities = await _wmsRepository.GetListByFilterAsync(GuidGenerator.Create(), input.Filters, input.Sorting, int.MaxValue, |
|
|
0, true); |
|
|
0, true); |
|
|
|
|
|
|
|
|
entities = entities.Where(p => p.OutputQty != 0).ToList(); |
|
|
entities = entities.Where(p => p.OutputQty != 0 && p.State==0).ToList(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await _wmsRepository.GetDbContext().BulkUpdateAsync(entities); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var count = entities.GroupBy(p => new { p.Type, p.ClientCode }).Count(); |
|
|
var count = entities.GroupBy(p => new { p.Type, p.ClientCode }).Count(); |
|
|
|
|
|
|
|
|
if (count > 1) |
|
|
if (count > 1) |
|
|