From 27b892793e77429d99d55cfc164a35c8af844806 Mon Sep 17 00:00:00 2001 From: jianweie code Date: Thu, 17 Aug 2023 01:22:36 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=96=87=E7=AB=A0=E5=88=86=E7=B1=BB=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E5=8F=8A=E5=89=8D=E7=AB=AF=E5=B1=95=E7=A4=BA=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/Article/CoreCmsArticleTypeController.cs | 3 +-- CoreCms.Net.Web.WebApi/Controllers/ArticleController.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CoreCms.Net.Web.Admin/Controllers/Article/CoreCmsArticleTypeController.cs b/CoreCms.Net.Web.Admin/Controllers/Article/CoreCmsArticleTypeController.cs index e7ba2e9a..971e9b8f 100644 --- a/CoreCms.Net.Web.Admin/Controllers/Article/CoreCmsArticleTypeController.cs +++ b/CoreCms.Net.Web.Admin/Controllers/Article/CoreCmsArticleTypeController.cs @@ -74,8 +74,7 @@ namespace CoreCms.Net.Web.Admin.Controllers var jm = new AdminUiCallBack(); //获取数据 - var list = await _coreCmsArticleTypeServices.QueryListByClauseAsync(p => p.id > 0, p => p.sort, - OrderByType.Desc, true, true); + var list = await _coreCmsArticleTypeServices.QueryListByClauseAsync(p => p.id > 0, p => p.sort, OrderByType.Asc, true, true); //返回数据 jm.data = list; jm.code = 0; diff --git a/CoreCms.Net.Web.WebApi/Controllers/ArticleController.cs b/CoreCms.Net.Web.WebApi/Controllers/ArticleController.cs index 68fa040a..a2764630 100644 --- a/CoreCms.Net.Web.WebApi/Controllers/ArticleController.cs +++ b/CoreCms.Net.Web.WebApi/Controllers/ArticleController.cs @@ -108,7 +108,7 @@ namespace CoreCms.Net.Web.WebApi.Controllers { var jm = new WebApiCallBack(); - var articleType = await _articleTypeServices.QueryAsync(true, true); + var articleType = await _articleTypeServices.QueryListByClauseAsync(p => p.id > 0, p => p.sort, OrderByType.Asc, true, true); if (articleType.Any()) { var where = PredicateBuilder.True();