院校库增加字段

develop
old易 2023-12-04 15:04:09 +08:00
parent 12cd58ec80
commit a2033443a3
2 changed files with 18 additions and 2 deletions

View File

@ -73,6 +73,16 @@ namespace New_College.Model.ViewModels
/// 创办时间
/// </summary>
public string BuildDate { get; set; }
/// <summary>
/// 地址
/// </summary>
public string Address { get; set; }
/// <summary>
/// 电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 院士数
/// </summary>

View File

@ -158,6 +158,12 @@ namespace New_College.Services
Nature = c.Nature,
AscriptionName = c.AscriptionName,
AreaName = c.Area_Name,
AcademicianCount = c.Academician_Count,
Address = c.Address,
BuildDate = c.Build_Date,
DoctorateCount = c.Doctorate_Count,
Phone = c.Phone,
Web = c.Web,
Logo = c.Logo,
Syl = c.Syl == 1,
Nhef = c.Nhef == 1,
@ -847,7 +853,7 @@ namespace New_College.Services
/// <returns></returns>
public async Task<List<UniversityRankList>> GetUniversityRank(UniversityRankQuery query)
{
var info = await d_UniversityRankRepository.Query(x => x.IsDelete == false && x.UniversityType == query.Type&&x.Year== "2023");
var info = await d_UniversityRankRepository.Query(x => x.IsDelete == false && x.UniversityType == query.Type && x.Year == "2023");
if (info.Count <= 0)
return new List<UniversityRankList>() { };
List<UniversityRankList> list = new List<UniversityRankList>() { };
@ -978,7 +984,7 @@ namespace New_College.Services
{
var stringBuilder = new StringBuilder();
//http://192.168.104.104:3000/youzy.dms.basiclib.api.college.news.bycollege.get
var info = HttpHelper.PostApi<GenBycollegeobject>("http://192.168.104.104:3000/youzy.dms.basiclib.api.college.news.bycollege.get",query);
var info = HttpHelper.PostApi<GenBycollegeobject>("http://192.168.104.104:3000/youzy.dms.basiclib.api.college.news.bycollege.get", query);
if (info.isSuccess == true)
{
return new MessageModel<List<GenBycollegeItem>>()