From 07e7884de4621278ba4022afa0da71bfb9c4e15e Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Tue, 1 Apr 2025 09:02:07 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=89=9B=E5=B0=BE=E3=80=91=E5=A4=84?= =?UTF-8?q?=E7=90=86=E5=AD=A6=E4=B9=A0=E8=BF=9B=E5=BA=A6=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E8=BE=BE=E6=88=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs b/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs index 059e8db6..16b73fb3 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs @@ -1709,9 +1709,9 @@ WHERE A.Id = '{id}'"; var courseWareIds = new List(); if (record.CourseId.IsNullOrEmpty()) - courseWareIds = await Db.Queryable().Where(x => x.CourseSceneId == record.CourseSceneId || x.CourseSceneIds.Contains(record.CourseSceneId.ObjToString())).Select(x => x.CourseWareId).ToListAsync(); + courseWareIds = await Db.Queryable().Where(x => (x.CourseSceneId == record.CourseSceneId || x.CourseSceneIds.Contains(record.CourseSceneId.ObjToString())) && x.Status == Consts.DIC_COURSE_STATUS.RELEASED).Select(x => x.CourseWareId).ToListAsync(); else - courseWareIds = await Db.Queryable().Where(x => x.Id == record.CourseId).Select(x => x.CourseWareId).ToListAsync(); + courseWareIds = await Db.Queryable().Where(x => x.Id == record.CourseId && x.Status == Consts.DIC_COURSE_STATUS.RELEASED).Select(x => x.CourseWareId).ToListAsync(); #region 记录学习明细 var detail = new Ghre_StudyRecordDetail()