修复bug

This commit is contained in:
tongfei
2024-04-08 09:29:57 +08:00
parent a635696439
commit a53b071b06
4 changed files with 14 additions and 1 deletions

View File

@@ -210,7 +210,9 @@ namespace WMS.Web.Api.Controllers
//剔除已入库的箱子
foreach (var boxid in instockBoxList.Distinct().ToList())
{
remobox.Add(receiveBoxList.Where(x => x.BoxId == boxid).First());
var reBox= receiveBoxList.Where(x => x.BoxId == boxid).FirstOrDefault();
if (reBox != null)
remobox.Add(reBox);
}
}
if (remobox.Count != 0)