唯亚威 现在问题处理

master
xiaochanghai 2 months ago
parent 76aca8caee
commit d141ce58db
  1. 11
      Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs

@ -1092,6 +1092,13 @@ public class Ghre_StudyRecordServices : BaseServices<Ghre_StudyRecord, Ghre_Stud
if (x.IsRequireStudy == false)
x.ShowStudyBtn = false;
if (dt >= x.CourseBeginDate && dt <= x.CourseEndDate)
x.DisableStudyBtn = false;
else
x.DisableStudyBtn = true;
});
return new ServicePageResult<Ghre_StudyRecordESS>(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<Ghre_StudyRecord>()
.SetColumns(it => new Ghre_StudyRecord()

Loading…
Cancel
Save