【优化】取消文章后台发布缩略图限制,优化数据出口及列表展示。

This commit is contained in:
jianweie code
2024-05-16 10:15:31 +08:00
parent ad53da6d99
commit dd7db9810d
4 changed files with 8 additions and 8 deletions

View File

@@ -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
}
}