From e33448508e5882380b4482d4fbe0eac66ce50a0a Mon Sep 17 00:00:00 2001 From: harid Date: Mon, 18 May 2026 14:45:27 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A?= =?UTF-8?q?=E0=B9=81=E0=B8=88=E0=B9=89=E0=B8=87=20Error=20#2497?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Services/ImportBackgroundService.cs | 1 + 1 file changed, 1 insertion(+) 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);