diff --git a/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs b/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs index b8dbcae0..e511ea9f 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs @@ -1092,6 +1092,13 @@ public class Ghre_StudyRecordServices : BaseServices= x.CourseBeginDate && dt <= x.CourseEndDate) + x.DisableStudyBtn = false; + else + x.DisableStudyBtn = true; }); return new ServicePageResult(filter.pageNum, total, filter.pageSize, entitys); @@ -1816,7 +1823,9 @@ WHERE A.Id = '{id}'"; await ExamHelper.MarkCompleteStatusAsync(Db, record); } - var studyProgress1 = studyProgress.ObjToInt(); + var studyProgress1 = Convert.ToInt32(studyProgress); + _logger.LogInformation($"【记录学习时长】studyProgress2:{studyProgress}"); + _logger.LogInformation($"【记录学习时长】studyProgress3:{studyProgress1}"); if (studyProgress > 0) await Db.Updateable() .SetColumns(it => new Ghre_StudyRecord()