mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 16:13:26 +08:00
【优化】取消文章后台发布缩略图限制,优化数据出口及列表展示。
This commit is contained in:
@@ -114,12 +114,12 @@ namespace CoreCms.Net.Web.WebApi.Controllers
|
||||
var where = PredicateBuilder.True<CoreCmsArticle>();
|
||||
if (entity.id > 0)
|
||||
{
|
||||
where = where.And(p => p.isDel == false && p.typeId == entity.id);
|
||||
where = where.And(p => p.isDel == false && p.typeId == entity.id && p.isPub == true);
|
||||
}
|
||||
else
|
||||
{
|
||||
var typeId = articleType.FirstOrDefault()!.id;
|
||||
where = where.And(p => p.isDel == false && p.typeId == typeId);
|
||||
where = where.And(p => p.isDel == false && p.typeId == typeId && p.isPub == true);
|
||||
}
|
||||
var list = await _articleServices.QueryPageAsync(where, p => p.createTime, OrderByType.Desc, entity.page, entity.limit);
|
||||
jm.data = new
|
||||
@@ -168,7 +168,7 @@ namespace CoreCms.Net.Web.WebApi.Controllers
|
||||
jm.data = model;
|
||||
return jm;
|
||||
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user