优化接口
This commit is contained in:
@@ -204,10 +204,18 @@ namespace WMS.Web.Api.Controllers
|
||||
|
||||
//找到已入库的箱子
|
||||
var instockBoxList= await _inStockRepositories.GetInstockBox(taskId);
|
||||
var remobox = new List<ReceiveBoxResponse>();
|
||||
if (receiveBoxList.Count!=0 && instockBoxList.Count != 0)
|
||||
{
|
||||
//剔除已入库的箱子
|
||||
foreach (var item in instockBoxList.Distinct().ToList())
|
||||
foreach (var boxid in instockBoxList.Distinct().ToList())
|
||||
{
|
||||
remobox.Add(receiveBoxList.Where(x => x.BoxId == boxid).First());
|
||||
}
|
||||
}
|
||||
if (remobox.Count != 0)
|
||||
{
|
||||
foreach (var item in remobox)
|
||||
{
|
||||
receiveBoxList.Remove(item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user