From a2033443a33e22548dd5b650bac539e62c939484 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?old=E6=98=93?= <156663459@qq.com>
Date: Mon, 4 Dec 2023 15:04:09 +0800
Subject: [PATCH] =?UTF-8?q?=E9=99=A2=E6=A0=A1=E5=BA=93=E5=A2=9E=E5=8A=A0?=
=?UTF-8?q?=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ViewModels/Result/UniversityResult.cs | 10 ++++++++++
New_College.Services/D_LongIdMapServices.cs | 10 ++++++++--
2 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/New_College.Model/ViewModels/Result/UniversityResult.cs b/New_College.Model/ViewModels/Result/UniversityResult.cs
index 1d9bc47..1bbe37b 100644
--- a/New_College.Model/ViewModels/Result/UniversityResult.cs
+++ b/New_College.Model/ViewModels/Result/UniversityResult.cs
@@ -73,6 +73,16 @@ namespace New_College.Model.ViewModels
/// 创办时间
///
public string BuildDate { get; set; }
+
+ ///
+ /// 地址
+ ///
+ public string Address { get; set; }
+
+ ///
+ /// 电话
+ ///
+ public string Phone { get; set; }
///
/// 院士数
///
diff --git a/New_College.Services/D_LongIdMapServices.cs b/New_College.Services/D_LongIdMapServices.cs
index 139ded2..a61588d 100644
--- a/New_College.Services/D_LongIdMapServices.cs
+++ b/New_College.Services/D_LongIdMapServices.cs
@@ -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
///
public async Task> 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() { };
List list = new List() { };
@@ -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("http://192.168.104.104:3000/youzy.dms.basiclib.api.college.news.bycollege.get",query);
+ var info = HttpHelper.PostApi("http://192.168.104.104:3000/youzy.dms.basiclib.api.college.news.bycollege.get", query);
if (info.isSuccess == true)
{
return new MessageModel>()