Fix นำเข้าผลสอบ

This commit is contained in:
Bright 2025-09-09 14:18:00 +07:00
parent 44e4ab3f9f
commit 5a92cf2852

View file

@ -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);
// ถ้าไม่มีผลคะแนนสอบคัดเลือกผู้พิการให้จบการทำงาน