mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 16:03:25 +08:00
【优化】优化商品仓储左联查询可能出现重复商品数据的问题。
This commit is contained in:
@@ -1252,7 +1252,7 @@ namespace CoreCms.Net.Repository
|
||||
.WhereIF(predicate != null, predicate)
|
||||
.ToPageListAsync(pageIndex, pageSize, totalCount);
|
||||
}
|
||||
var list = new PageList<CoreCmsGoods>(page, pageIndex, pageSize, totalCount);
|
||||
var list = new PageList<CoreCmsGoods>(page.DistinctBy(o => o.id), pageIndex, pageSize, totalCount);
|
||||
return list;
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user