From 37c9747f5c81bb117a1b7dfa3cef57fb9927f6ee Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Mon, 14 Jul 2025 14:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=AF=E8=B0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VOL.Business/Services/School/S_StudentService.cs | 3 ++- VOL.WebApi/Controllers/AI/AiAppController.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VOL.Business/Services/School/S_StudentService.cs b/VOL.Business/Services/School/S_StudentService.cs index eb9d1bb..6396cd1 100644 --- a/VOL.Business/Services/School/S_StudentService.cs +++ b/VOL.Business/Services/School/S_StudentService.cs @@ -94,7 +94,8 @@ namespace VOL.Business.Services.School var query = from s in _studentRepository.DbContext.Set() - join c in _studentRepository.DbContext.Set() on s.ClassId equals c.Id + join c in _studentRepository.DbContext.Set() on s.ClassId equals c.Id into sc + from c in sc.DefaultIfEmpty() where s.SchoolCode.Equals(UserContext.Current.TenantId) && s.StudentStatus == StudentStatus.Normal && (!isTeacher || classIds.Contains(c.Id)) diff --git a/VOL.WebApi/Controllers/AI/AiAppController.cs b/VOL.WebApi/Controllers/AI/AiAppController.cs index bb681fa..c8e6106 100644 --- a/VOL.WebApi/Controllers/AI/AiAppController.cs +++ b/VOL.WebApi/Controllers/AI/AiAppController.cs @@ -106,7 +106,7 @@ namespace VOL.WebApi.Controllers /// /// [HttpGet(nameof(ItemTypeList))] - [ServiceFilter(typeof(ValidateDeviceFilter))] + [ServiceFilter(typeof(ValidateDeviceFilter))] public async Task> ItemTypeList(Ai_Request paramDto) { return await _aiAppService.ItemTypeList();