修复bug
This commit is contained in:
@@ -4,6 +4,7 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Newtonsoft.Json;
|
||||
using Npoi.Mapper;
|
||||
using StackExchange.Redis;
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
@@ -1135,8 +1136,10 @@ namespace WMS.Web.Domain.Services
|
||||
var list = await _inStockRepositories.GetListBy(t_boxIds);
|
||||
|
||||
//解绑
|
||||
list.ForEach(x => { x.UnBind = true; });
|
||||
|
||||
list.SelectMany(s => s.Details)
|
||||
.Where(w => t_boxIds.Contains(w.BoxId))
|
||||
.ForEach(f => f.UnBind = true);
|
||||
|
||||
if (list.Count != 0)
|
||||
{
|
||||
var isSuccess = await _inStockRepositories.UpdateRange(list, isTransaction);
|
||||
|
||||
Reference in New Issue
Block a user