diff --git a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs index a3156c49..c30075ba 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs @@ -160,7 +160,7 @@ public class Ghre_ExamRecordServices : BaseServices().Where(x => x.Id == paperId).FirstAsync(); if (examPaper != null) - record.IsPass = examPaper.PassScore > (record.Score + record.AdjustScore) ? false : true; + record.IsPass = examPaper.PassScore > (record.Score + (record.AdjustScore ?? 0)) ? false : true; record.Score = details.Sum(x => x.Score); record.Score = extend.questionList.Sum(x => x.RealScore); await Db.Updateable(record).ExecuteCommandAsync();