fix ระบบแจ้ง Error #2497
All checks were successful
Build & Deploy on Dev / build (push) Successful in 46s

This commit is contained in:
harid 2026-05-18 14:45:27 +07:00
parent cf98121993
commit e33448508e

View file

@ -635,6 +635,7 @@ public class ImportBackgroundService : BackgroundService
if (!string.IsNullOrEmpty(r.ExamId) && recruitsDict.TryGetValue(r.ExamId, out var recruit))
{
r.Id = Guid.NewGuid(); // Generate unique ID for each record
r.CitizenId = workSheet?.Cells[row, 3]?.GetValue<string>()?.Trim();
r.FullA = 200;
r.SumA = string.IsNullOrWhiteSpace(workSheet?.Cells[row, 5]?.GetValue<string>()) ? 0.00 : Math.Round(workSheet.Cells[row, 5].GetValue<double>(), 2);