From 58b7f2b0ae9019c1d874d81a714269afd475ff6a Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Thu, 12 Jun 2025 14:30:32 +0800 Subject: [PATCH] d --- WeChatApplet/Services/Impl/TeacherService.cs | 10 ++++++++++ .../Dto/ClassRoomRecord/StudentClassRoomReportDto.cs | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/WeChatApplet/Services/Impl/TeacherService.cs b/WeChatApplet/Services/Impl/TeacherService.cs index 9387030..9ef38c7 100644 --- a/WeChatApplet/Services/Impl/TeacherService.cs +++ b/WeChatApplet/Services/Impl/TeacherService.cs @@ -502,6 +502,16 @@ namespace YD_WeChatApplet.Services } } + + var jumpRecordList = await _sportsContext.Ai_FastJumpRopeData.Where(x => x.ClassRoomRecordId == classRoomId && x.StudentNo == studentNo).Select(x => new JumpRecordListDto() + { + TotalCount = x.JumpValue ?? 0, + TotalDuration = x.MotionDuration ?? 0, + + }).ToListAsync(); + + res.JumpRecordList = jumpRecordList; + return res; } diff --git a/YD_WeChatApplet.Commons/Dto/ClassRoomRecord/StudentClassRoomReportDto.cs b/YD_WeChatApplet.Commons/Dto/ClassRoomRecord/StudentClassRoomReportDto.cs index a82303e..4f9117f 100644 --- a/YD_WeChatApplet.Commons/Dto/ClassRoomRecord/StudentClassRoomReportDto.cs +++ b/YD_WeChatApplet.Commons/Dto/ClassRoomRecord/StudentClassRoomReportDto.cs @@ -47,7 +47,7 @@ namespace YD_WeChatApplet.Commons.Dto.ClassRoomRecord /// /// 跳绳类型 /// - public string JumpType { get; set; } + public string JumpType { get; set; } = "智能跳绳"; /// /// 总个数