From cb214fb0ad4d39b81ffdd7b03f1db0e031e347c7 Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Fri, 16 Jan 2026 16:22:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Training/I_TrainingDataService.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/VOL.Business/Services/Training/I_TrainingDataService.cs b/VOL.Business/Services/Training/I_TrainingDataService.cs index 0739f8f..49331a8 100644 --- a/VOL.Business/Services/Training/I_TrainingDataService.cs +++ b/VOL.Business/Services/Training/I_TrainingDataService.cs @@ -1996,8 +1996,19 @@ namespace VOL.Business.Services.Training { var res = new PageDataDto(); + string schoolCode = ""; + + if (!string.IsNullOrWhiteSpace(paramDto.SchoolCode)) + { + schoolCode = paramDto.SchoolCode; + } + else + { + schoolCode = UserContext.Current.TenantId; + } + var query = from td in _teacherRepository.DbContext.Set() - where td.SchoolCode.Equals(UserContext.Current.TenantId) + where td.SchoolCode.Equals(schoolCode) select new ClassReportModel() { Id = td.Id,