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