From 365a84baa032d5e5c7d9e9ce820e0354d390f706 Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Fri, 16 Jan 2026 13:33:13 +0800 Subject: [PATCH] app --- VOL.Ai/Services/AiAppService.cs | 36 +++++++++++++++++---------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/VOL.Ai/Services/AiAppService.cs b/VOL.Ai/Services/AiAppService.cs index 9075ee7..fa6959c 100644 --- a/VOL.Ai/Services/AiAppService.cs +++ b/VOL.Ai/Services/AiAppService.cs @@ -129,25 +129,27 @@ namespace VOL.Ai.Services // ========================= // 1️⃣ 查询学校信息 // ========================= - var res = await ( - from a in _studentRepository.DbContext.Set() - join s in _studentRepository.DbContext.Set() - on a.SchoolCode equals s.SchoolCode - where a.Code == paramDto.Code - select new Ai_SchoolDto - { - SchoolCode = s.SchoolCode, - Name = s.SchoolName, - Type = s.SchoolNatureId, - Province = s.Province, - City = s.City - } - ).FirstOrDefaultAsync(); + //var res = await ( + // from a in _studentRepository.DbContext.Set() + // join s in _studentRepository.DbContext.Set() + // on a.SchoolCode equals s.SchoolCode + // where a.Code == paramDto.Code + // select new Ai_SchoolDto + // { + // SchoolCode = s.SchoolCode, + // Name = s.SchoolName, + // Type = s.SchoolNatureId, + // Province = s.Province, + // City = s.City + // } + //).FirstOrDefaultAsync(); - if (res == null) - return new Ai_SchoolDto(); + //if (res == null) + // return new Ai_SchoolDto(); - var schoolCode = res.SchoolCode; + var res = new Ai_SchoolDto(); + + var schoolCode = paramDto.Code; // ========================= // 2️⃣ 调用京师接口获取学校年级班级