修复bug

This commit is contained in:
18942506660
2024-11-15 14:23:06 +08:00
parent 29f16e6ba2
commit 0f890de187

View File

@@ -203,7 +203,7 @@ namespace WMS.Web.Repositories
SerialNumbers = (string.Join(",", x.detail.SerialNumbers).TrimEnd(',')) SerialNumbers = (string.Join(",", x.detail.SerialNumbers).TrimEnd(','))
}).ToListAsync(); }).ToListAsync();
//这里不知道为什么左连接会查出重复多余数据 需要去重 //左连接中 右表中的数据如果有多条,没办法清楚显示那一条 于是就显示了多条 数据就重复
boxList = boxList.GroupBy(g => g.DetailId).Select(s => s.First()).ToList(); boxList = boxList.GroupBy(g => g.DetailId).Select(s => s.First()).ToList();
var boxIds = boxList.GroupBy(x => x.BoxId).Select(x => x.Key).ToList(); var boxIds = boxList.GroupBy(x => x.BoxId).Select(x => x.Key).ToList();