From 96fc80bebd27f18a6b514472ee19020dea6bbf5f Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Fri, 13 Jun 2025 14:18:12 +0800 Subject: [PATCH] --- WeChatApplet/Services/Impl/TeacherService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WeChatApplet/Services/Impl/TeacherService.cs b/WeChatApplet/Services/Impl/TeacherService.cs index 8b6bce5..4234dfc 100644 --- a/WeChatApplet/Services/Impl/TeacherService.cs +++ b/WeChatApplet/Services/Impl/TeacherService.cs @@ -476,6 +476,10 @@ namespace YD_WeChatApplet.Services { var res = new StudentClassRoomReportDto(); + + if (string.IsNullOrWhiteSpace(studentNo)) + studentNo = UserLoginContext.Current.UserNo; + var query = from hrd in _sportsContext.Ai_HeartRateData where hrd.ClassRoomRecordId == classRoomId && hrd.StudentNo == studentNo