fix ระบบแจ้ง Error #2497
This commit is contained in:
parent
cf98121993
commit
f92906b081
1 changed files with 1 additions and 0 deletions
|
|
@ -635,6 +635,7 @@ public class ImportBackgroundService : BackgroundService
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(r.ExamId) && recruitsDict.TryGetValue(r.ExamId, out var recruit))
|
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.CitizenId = workSheet?.Cells[row, 3]?.GetValue<string>()?.Trim();
|
||||||
r.FullA = 200;
|
r.FullA = 200;
|
||||||
r.SumA = string.IsNullOrWhiteSpace(workSheet?.Cells[row, 5]?.GetValue<string>()) ? 0.00 : Math.Round(workSheet.Cells[row, 5].GetValue<double>(), 2);
|
r.SumA = string.IsNullOrWhiteSpace(workSheet?.Cells[row, 5]?.GetValue<string>()) ? 0.00 : Math.Round(workSheet.Cells[row, 5].GetValue<double>(), 2);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue