调整接口类型
parent
3430d2b3bb
commit
079cb6e313
|
|
@ -61,6 +61,8 @@ namespace New_College.Api.Controllers.Front
|
|||
return new MessageModel<List<uniMajorInfoResult>>()
|
||||
{
|
||||
response = roottrees,
|
||||
success = true,
|
||||
msg = "ok"
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -83,7 +85,7 @@ namespace New_College.Api.Controllers.Front
|
|||
Expression<Func<SubjectSelection, bool>> exp = Expressionable.Create<SubjectSelection>() //创建表达式
|
||||
.AndIF(!string.IsNullOrEmpty(request.UniversityName), w => SqlFunc.ContainsArray(JsonConvert.DeserializeObject<List<string>>(request.UniversityName), w.UniversityName))
|
||||
.AndIF(!string.IsNullOrEmpty(request.MajorName), w => SqlFunc.ContainsArray(JsonConvert.DeserializeObject<List<string>>(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();//注意 这一句 不能少
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue