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

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