修复bug
This commit is contained in:
@@ -208,7 +208,7 @@ namespace WMS.Web.Repositories
|
|||||||
|
|
||||||
var boxIds = boxList.GroupBy(x => x.BoxId).Select(x => x.Key).ToList();
|
var boxIds = boxList.GroupBy(x => x.BoxId).Select(x => x.Key).ToList();
|
||||||
//左连接中 右表中的数据如果有多条,所以需要特殊处理
|
//左连接中 右表中的数据如果有多条,所以需要特殊处理
|
||||||
var instockTaskBoxList = await _context.InstockTaskBox.Where(w => boxIds.Contains(w.BoxId)).ToListAsync();
|
var instockTaskBoxList = await _context.InstockTaskBox.Where(w => w.TaskId == entity.Id && boxIds.Contains(w.BoxId)).ToListAsync();
|
||||||
foreach (var bid in boxIds)
|
foreach (var bid in boxIds)
|
||||||
{
|
{
|
||||||
var resList = boxList.Where(w => w.BoxId == bid).OrderByDescending(x => x.ShelfTime).ToList();
|
var resList = boxList.Where(w => w.BoxId == bid).OrderByDescending(x => x.ShelfTime).ToList();
|
||||||
|
|||||||
Reference in New Issue
Block a user