เก็บ lastUpdate หากมีเช็คออกคำสั่งย้อนหลัง
All checks were successful
Build & Deploy Placement Service / build (push) Successful in 2m19s

This commit is contained in:
harid 2026-06-23 18:24:30 +07:00
parent f6c8b4f754
commit bf5dc2cf19
6 changed files with 93 additions and 12 deletions

View file

@ -1306,7 +1306,13 @@ namespace BMA.EHR.Placement.Service.Controllers
#endregion
// New: Linear Flow
data.ForEach(profile => profile.Status = "DONE");
data.ForEach(profile =>
{
profile.Status = "DONE";
profile.LastUpdateFullName = FullName ?? "System Administrator";
profile.LastUpdateUserId = UserId ?? "";
profile.LastUpdatedAt = DateTime.Now;
});
Console.WriteLine($"[ReceiveReportExcecute] Saving changes to database for {data.Count} profiles");
await _context.SaveChangesAsync();
Console.WriteLine($"[ReceiveReportExcecute] Process completed successfully at {DateTime.Now}");