feat:bug 修复
parent
05bc0ce8c4
commit
ec4fad2773
|
|
@ -241,7 +241,7 @@ namespace New_College.Api.Controllers
|
|||
UId = request.Uid,
|
||||
LowScore = c.LowScore,
|
||||
LowScoreRank = c.LowScoreRank,
|
||||
AvgScore = c.AvgScore,
|
||||
AvgScore = c.AvgScore != "-" ? int.Parse(c.AvgScore) <= c.LowScore ? "-" : c.AvgScore : "-",
|
||||
Years = c.Years,
|
||||
FirstType = c.FirstType,
|
||||
HighScore = c.HighScore,
|
||||
|
|
|
|||
|
|
@ -108,7 +108,8 @@ namespace New_College.Api.Controllers.Front
|
|||
CreateTime = s.CreateTime.Value,
|
||||
Id = s.Id,
|
||||
Summary = !string.IsNullOrWhiteSpace(s.Summary) ? s.Summary : s.Detail.Substring(0, 200) + "...",
|
||||
Title = s.Title
|
||||
Title = s.Title,
|
||||
Source = s.Author
|
||||
}).ToList();
|
||||
pageresponse.pageCount = pageinfo.data.Count;
|
||||
pageresponse.page = pageinfo.data.Count;
|
||||
|
|
|
|||
|
|
@ -290,7 +290,7 @@ namespace New_College.Repository
|
|||
});
|
||||
return new PageModel<UniversityResult>()
|
||||
{
|
||||
data = recommendInfo,
|
||||
data = recommendInfo.OrderBy(o => o.Percentage).ToList(),
|
||||
page = query.PageIndex,
|
||||
PageSize = query.PageSize,
|
||||
dataCount = totalNumber,
|
||||
|
|
|
|||
Loading…
Reference in New Issue