From 4b197e37b8cca8bcac9eb7d37272c89fbe13e9f8 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Sat, 10 Aug 2024 15:42:47 +0800 Subject: [PATCH] 1 --- Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs index 229a0c79..8e2da1f4 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs @@ -444,7 +444,7 @@ public class Ghre_ExamRecordServices : BaseServices() .Where(x => x.Id == studyRecord.ExamId) .FirstAsync(x => x.Status == Consts.DIC_EXAM_STATUS.RELEASED); - + if (exam.IsNull()) return ServiceResult.OprateFailed("该门课程尚未开启考试,请联系HR !"); @@ -899,7 +899,7 @@ public class Ghre_ExamRecordServices : BaseServices().FirstAsync(x => x.Id == record.StudyRecordId); var examPaper = await Db.Queryable().FirstAsync(x => x.Id == record.ExamPaperId); - record.IsPass = examPaper.PassScore > (record.Score + record.AdjustScore) ? true : false; + record.IsPass = examPaper.PassScore > (record.Score + record.AdjustScore) ? false : true; await Db.Updateable(record).UpdateColumns(it => new { it.IsPass }, true)//true表示追加AOP赋值列 .ExecuteCommandAsync();