เก็บ 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

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