feat:bug fixed

develop
old易 2024-03-23 11:39:35 +08:00
parent 046ebcabf8
commit 176bd353ef
1 changed files with 7 additions and 1 deletions

View File

@ -323,7 +323,13 @@ namespace New_College.Services
if (info == null || info.IsDelete)
return new MessageModel<CustomerInfoResult>() { success = false, msg = "获取失败,用户信息为空" };
var years = info.Year > 2023 ? 2023 : info.Year;
var typename = info.subjectgroupName.Length > 2 ? "综合" : info.subjectgroupName;
string typename = "综合";
if (info.subjectgroupName != null)
{
typename = info.subjectgroupName.Length > 2 ? "综合" : info.subjectgroupName;
}
var batchlist = await t_BatchlineRepository.Query(c => c.Year == years && c.AreaName == info.AreaName && c.Type_name == typename);
string BatchName = string.Empty;
if (info.AreaName == "河南省")