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

This commit is contained in:
Bright 2025-09-09 14:18:44 +07:00
parent 95b7ef95de
commit a6b236c413

View file

@ -1566,6 +1566,9 @@ namespace BMA.EHR.Recruit.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);
// ถ้าไม่มีผลคะแนนสอบแข่งขันให้จบการทำงาน