diff --git a/Controllers/DisableController.cs b/Controllers/DisableController.cs index dbb77e5..5751796 100644 --- a/Controllers/DisableController.cs +++ b/Controllers/DisableController.cs @@ -1760,6 +1760,9 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers // preload score var score = rec_import.ScoreImport.Scores .Where(s => !string.IsNullOrEmpty(s.ExamId)) + .GroupBy(x => x.ExamId) + .Where(g => g.Count() == 1) + .Select(g => g.First()) .ToDictionary(s => s.ExamId, s => s); // ถ้าไม่มีผลคะแนนสอบคัดเลือกผู้พิการให้จบการทำงาน