From 71e1f3ba93970923835f30db3efa5457a914014e Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Tue, 29 Apr 2025 15:15:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E8=AF=95=E7=BB=93=E6=9D=9F=E6=97=B6?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=AE=9E=E6=97=B6=E5=88=A4=E5=AE=9A=E5=AD=A6?= =?UTF-8?q?=E4=B9=A0=E5=AE=8C=E6=88=90=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Ghre/Ghre_ExamRecordServices.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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"); }