mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 20:13:26 +08:00
【优化】优化优惠券领取列表排序,按照【权重】从小到大排序。
This commit is contained in:
@@ -391,7 +391,7 @@ namespace CoreCms.Net.Services
|
|||||||
where = where.And(p => p.isAutoReceive == true); //自动领取状态
|
where = where.And(p => p.isAutoReceive == true); //自动领取状态
|
||||||
where = where.And(p => p.isDel == false); //是否被删除
|
where = where.And(p => p.isDel == false); //是否被删除
|
||||||
|
|
||||||
var data = await _dal.QueryPageAndChildsAsync(where, p => p.id, OrderByType.Desc, false, 0, limit);
|
var data = await _dal.QueryPageAndChildsAsync(where, p => p.sort, OrderByType.Asc, false, 0, limit);
|
||||||
|
|
||||||
if (data != null && data.Any())
|
if (data != null && data.Any())
|
||||||
{
|
{
|
||||||
@@ -438,7 +438,7 @@ namespace CoreCms.Net.Services
|
|||||||
where = where.And(p => p.isAutoReceive == true); //自动领取状态
|
where = where.And(p => p.isAutoReceive == true); //自动领取状态
|
||||||
where = where.And(p => p.isDel == false); //是否被删除
|
where = where.And(p => p.isDel == false); //是否被删除
|
||||||
|
|
||||||
var data = await _dal.QueryPageAndChildsAsync(where, p => p.id, OrderByType.Desc, true, page, limit);
|
var data = await _dal.QueryPageAndChildsAsync(where, p => p.sort, OrderByType.Asc, true, page, limit);
|
||||||
|
|
||||||
if (data != null && data.Any())
|
if (data != null && data.Any())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user