From b9867c4fa91b67a3079e03d266ae0fedd457c209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?old=E6=98=93?= <156663459@qq.com> Date: Mon, 4 Dec 2023 17:20:54 +0800 Subject: [PATCH] university response add property(Ownership) --- New_College.Api/New_College.Model.xml | 5 +++++ New_College.Model/ViewModels/Query/OneSubmitGoRequest.cs | 7 +++++++ New_College.Services/D_PlanMajorDescServices.cs | 2 ++ 3 files changed, 14 insertions(+) diff --git a/New_College.Api/New_College.Model.xml b/New_College.Api/New_College.Model.xml index 44017b6..5a8eee3 100644 --- a/New_College.Api/New_College.Model.xml +++ b/New_College.Api/New_College.Model.xml @@ -4005,6 +4005,11 @@ + + + 学校归属 + + 计划数 diff --git a/New_College.Model/ViewModels/Query/OneSubmitGoRequest.cs b/New_College.Model/ViewModels/Query/OneSubmitGoRequest.cs index 32fa190..575bffe 100644 --- a/New_College.Model/ViewModels/Query/OneSubmitGoRequest.cs +++ b/New_College.Model/ViewModels/Query/OneSubmitGoRequest.cs @@ -136,6 +136,11 @@ namespace New_College.Model.ViewModels /// public string _SYL { get; set; } + /// + /// 学校归属 + /// + public string Ownership { get; set; } + /// /// 计划数 /// @@ -240,6 +245,8 @@ namespace New_College.Model.ViewModels /// public int planCount { get; set; } + public string Ownership { get; set; } + /// /// 学费 /// diff --git a/New_College.Services/D_PlanMajorDescServices.cs b/New_College.Services/D_PlanMajorDescServices.cs index 675249d..0d764ad 100644 --- a/New_College.Services/D_PlanMajorDescServices.cs +++ b/New_College.Services/D_PlanMajorDescServices.cs @@ -108,6 +108,7 @@ namespace New_College.Services UniversityName = c.UniversityName, UniversityCode = c.RecruitCode.ToString(), LowScoreRank = c.LowScoreRank, + Ownership = c.Ownership, // SubjectClam = c.SelectSubject, Type = MajorPlanScoreTool.GetPlanScore(c.LowScore, request.Score),//冲稳保院校 planCount = list.Where(w => w.Years == DateTime.Now.Year && w.UId == c.UId).Sum(c => c.PlanCount), @@ -219,6 +220,7 @@ namespace New_College.Services MajorGroup = c.MajorGroup, MajorRemark = c.Remark, planCount = c.PlanCount, + Ownership= c.Ownership, Rank = c.Rank, _985 = c._985, _211 = c._211,