diff --git a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs index 2a2ac053..65c83a2f 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs @@ -1226,6 +1226,10 @@ public class Ghre_ExamRecordServices : BaseServices().FirstAsync(x => x.Id == record.StudyRecordId); + studyRecord.ReverseI1 = 1; + await Db.Updateable(studyRecord).UpdateColumns(it => new { it.ReverseI1 }, true)//true表示追加AOP赋值列 + .ExecuteCommandAsync(); + var examPaper = await Db.Queryable().FirstAsync(x => x.Id == record.ExamPaperId); _logger.LogInformation($"【DealPass:{studyRecordId}】PassScore:{examPaper.PassScore},Score:{record.Score},PassScore:{record.AdjustScore},"); @@ -1308,6 +1312,20 @@ public class Ghre_ExamRecordServices : BaseServices().Where(x => x.Id == record.ExamId && (x.StudyFinishedRule == DIC_EXAM_STUDY_FINISHED_RULE.NO_STUDY_EXAM_PASS || x.StudyFinishedRule == DIC_EXAM_STUDY_FINISHED_RULE.EXAM_PASS)).FirstAsync(); + if (exam != null) + { + studyRecord.CompleteStatus = DIC_STUDY_RECORD_STUDY_COMPLETE_STATUS.FINISHED; + await Db.Updateable(studyRecord).UpdateColumns(it => new { it.CompleteStatus }, true) + .ExecuteCommandAsync(); + } + } + #endregion + _logger.LogInformation($"【DealPass:{studyRecordId}】2"); }