From 1a5985be2137b28ee034d5b4fafc8de6060f5a13 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Tue, 22 Apr 2025 14:07:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=BE=E7=A8=8B=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E7=BB=B4=E6=8A=A4=E8=AF=BE=E7=A8=8B=E5=8F=8D=E5=86=99?= =?UTF-8?q?=E8=87=B3=E8=AF=BE=E7=A8=8B=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs | 2 +- Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs b/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs index 0ff25ce9..22124ecc 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs @@ -1288,7 +1288,7 @@ public class Ghre_CourseServices : BaseServices>> QueryBySceneId(long courseSceneId) { - var entitys = await base.Query(x => x.CourseSceneId == courseSceneId && x.Status == Consts.DIC_COURSE_STATUS.RELEASED); + var entitys = await base.Query(x => x.CourseSceneId != null && x.CourseSceneIds.Contains(courseSceneId.ObjToString()) && x.Status == Consts.DIC_COURSE_STATUS.RELEASED); var courseWareIds = entitys.Select(x => x.CourseWareId).Distinct().ToList(); var attachments = await Db.Queryable().Where(x => courseWareIds.Contains(x.CourseWareId)).ToListAsync(); //var attachments = await _ghre_CourseWareAttachmentServices.Query(x => x.CourseWareId != null && attachmentIds.Contains(x.CourseWareId.Value)); diff --git a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs index 2abb71cb..7fedbbc7 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs @@ -862,6 +862,10 @@ public class Ghre_ExamRecordServices : BaseServices