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();//注意 这一句 不能少