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

This commit is contained in:
harid 2026-06-24 16:20:49 +07:00
parent bf5dc2cf19
commit 5021c00dd3
10 changed files with 94 additions and 23 deletions

View file

@ -686,12 +686,13 @@ namespace BMA.EHR.Placement.Service.Controllers
#endregion
// New: Linear Flow - Task #224ปรับให้เป็น process ที่ควรบันทึกตามลำดับ
var now = DateTime.Now;
data.ForEach(profile =>
{
profile.Status = "DONE";
profile.LastUpdateFullName = FullName ?? "System Administrator";
profile.LastUpdateUserId = UserId ?? "";
profile.LastUpdatedAt = DateTime.Now;
profile.LastUpdatedAt = now;
});
await _context.SaveChangesAsync();