diff --git a/Services/ImportBackgroundService.cs b/Services/ImportBackgroundService.cs index 6143171..2a0d7f2 100644 --- a/Services/ImportBackgroundService.cs +++ b/Services/ImportBackgroundService.cs @@ -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()?.Trim(); r.FullA = 200; r.SumA = string.IsNullOrWhiteSpace(workSheet?.Cells[row, 5]?.GetValue()) ? 0.00 : Math.Round(workSheet.Cells[row, 5].GetValue(), 2);