From 079cb6e313928d18a745406d962752f7b9995ceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?old=E6=98=93?= <156663459@qq.com> Date: Fri, 17 Nov 2023 13:46:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8E=A5=E5=8F=A3=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- New_College.Api/Controllers/Front/FrontSelectionController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/New_College.Api/Controllers/Front/FrontSelectionController.cs b/New_College.Api/Controllers/Front/FrontSelectionController.cs index b5eebc3..674d13d 100644 --- a/New_College.Api/Controllers/Front/FrontSelectionController.cs +++ b/New_College.Api/Controllers/Front/FrontSelectionController.cs @@ -61,6 +61,8 @@ namespace New_College.Api.Controllers.Front return new MessageModel>() { response = roottrees, + success = true, + msg = "ok" }; } @@ -83,7 +85,7 @@ namespace New_College.Api.Controllers.Front Expression> exp = Expressionable.Create() //创建表达式 .AndIF(!string.IsNullOrEmpty(request.UniversityName), w => SqlFunc.ContainsArray(JsonConvert.DeserializeObject>(request.UniversityName), w.UniversityName)) .AndIF(!string.IsNullOrEmpty(request.MajorName), w => SqlFunc.ContainsArray(JsonConvert.DeserializeObject>(request.MajorName), w.MajorName)) - .AndIF(!string.IsNullOrWhiteSpace(request.Location), w => w.Province== request.Location) + .AndIF(!string.IsNullOrWhiteSpace(request.Location), w => w.Province == request.Location) .AndIF(request.Years > 0, w => w.AcademicYear == request.Years.ToString()) .ToExpression();//注意 这一句 不能少