修复bug

This commit is contained in:
18942506660
2024-11-15 14:27:49 +08:00
parent 0f890de187
commit fd771b14d0

View File

@@ -204,7 +204,7 @@ namespace WMS.Web.Repositories
}).ToListAsync();
//左连接中 右表中的数据如果有多条,没办法清楚显示那一条 于是就显示了多条 数据就重复
boxList = boxList.GroupBy(g => g.DetailId).Select(s => s.First()).ToList();
boxList = boxList.GroupBy(g => g.DetailId).Select(s => s.OrderByDescending(o=>o.ReceiveTime).First()).ToList();
var boxIds = boxList.GroupBy(x => x.BoxId).Select(x => x.Key).ToList();