From dc5066c857a852af34cabd5312cade57fd23106d Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Wed, 23 Apr 2025 16:58:00 +0800 Subject: [PATCH] 1 --- .../Ghre/Ghre_ExamRecordServices.cs | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs index 7fedbbc7..856211c3 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs @@ -1016,11 +1016,11 @@ public class Ghre_ExamRecordServices : BaseServices x.QuestionId).ToList(); @@ -1164,14 +1164,14 @@ public class Ghre_ExamRecordServices : BaseServices lastScore) { record.Score = lastScore; - sql = $@"UPDATE Ghre_ExamRecordDetail SET IsEnable=0 WHERE ExamRecordId='{record.Id}'; - UPDATE Ghre_ExamRecordAnswer SET IsEnable=0 WHERE ExamRecordId='{record.Id}';"; + //sql = $@"UPDATE Ghre_ExamRecordDetail SET IsEnable=0 WHERE ExamRecordId='{record.Id}'; + // UPDATE Ghre_ExamRecordAnswer SET IsEnable=0 WHERE ExamRecordId='{record.Id}';"; - await Db.Ado.ExecuteCommandAsync(sql); + //await Db.Ado.ExecuteCommandAsync(sql); - sql = $@"UPDATE Ghre_ExamRecordDetail SET IsEnable=1 WHERE IsEnable=2 AND ExamRecordId='{record.Id}'; - UPDATE Ghre_ExamRecordAnswer SET IsEnable=1 WHERE IsEnable=2 AND ExamRecordId='{record.Id}';"; - await Db.Ado.ExecuteCommandAsync(sql); + //sql = $@"UPDATE Ghre_ExamRecordDetail SET IsEnable=1 WHERE IsEnable=2 AND ExamRecordId='{record.Id}'; + // UPDATE Ghre_ExamRecordAnswer SET IsEnable=1 WHERE IsEnable=2 AND ExamRecordId='{record.Id}';"; + //await Db.Ado.ExecuteCommandAsync(sql); } #region 处理最终得分