mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 12:19:48 +08:00
【优化】小程序商品栏目列表调整为按照是否推荐、是否热门、排序从大到小排序方式。
This commit is contained in:
@@ -237,7 +237,7 @@ namespace CoreCms.Net.Web.WebApi.Controllers
|
|||||||
where = where.And(p => p.name.Contains(obj.searchName));
|
where = where.And(p => p.name.Contains(obj.searchName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var orderBy = " isRecommend desc,isHot desc";
|
var orderBy = " isRecommend desc,isHot desc,sort desc";
|
||||||
if (!string.IsNullOrWhiteSpace(entity.order))
|
if (!string.IsNullOrWhiteSpace(entity.order))
|
||||||
{
|
{
|
||||||
orderBy += "," + entity.order;
|
orderBy += "," + entity.order;
|
||||||
|
|||||||
Reference in New Issue
Block a user