From 89a0e302ff6f3bfe72bbab1f0ce1a0752d9c9d82 Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Wed, 21 Jan 2026 10:05:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WeChatApplet/Services/Impl/PatriarchService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WeChatApplet/Services/Impl/PatriarchService.cs b/WeChatApplet/Services/Impl/PatriarchService.cs index 13fdd9f..5fe03ad 100644 --- a/WeChatApplet/Services/Impl/PatriarchService.cs +++ b/WeChatApplet/Services/Impl/PatriarchService.cs @@ -376,9 +376,9 @@ namespace YD_WeChatApplet.Api.Services.Impl /// public async Task> ExerciseRecord(PageDto dto) { - var userId = UserLoginContext.Current.UserId; + var studentNo = UserLoginContext.Current.UserNo; - var query = _userContext.ExerciseData.Where(x => x.UserId == userId); + var query = _userContext.ExerciseData.Where(x => x.StudentNo == studentNo); var totalCount = await query.CountAsync();