【牛尾】处理学习进度无法正常达成问题

master
xiaochanghai 3 months ago
parent 5394b5472a
commit 07e7884de4
  1. 4
      Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs

@ -1709,9 +1709,9 @@ WHERE A.Id = '{id}'";
var courseWareIds = new List<long?>(); var courseWareIds = new List<long?>();
if (record.CourseId.IsNullOrEmpty()) if (record.CourseId.IsNullOrEmpty())
courseWareIds = await Db.Queryable<Ghre_Course>().Where(x => x.CourseSceneId == record.CourseSceneId || x.CourseSceneIds.Contains(record.CourseSceneId.ObjToString())).Select(x => x.CourseWareId).ToListAsync(); courseWareIds = await Db.Queryable<Ghre_Course>().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 else
courseWareIds = await Db.Queryable<Ghre_Course>().Where(x => x.Id == record.CourseId).Select(x => x.CourseWareId).ToListAsync(); courseWareIds = await Db.Queryable<Ghre_Course>().Where(x => x.Id == record.CourseId && x.Status == Consts.DIC_COURSE_STATUS.RELEASED).Select(x => x.CourseWareId).ToListAsync();
#region 记录学习明细 #region 记录学习明细
var detail = new Ghre_StudyRecordDetail() var detail = new Ghre_StudyRecordDetail()

Loading…
Cancel
Save