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

@ -2035,6 +2035,9 @@ namespace BMA.EHR.Placement.Service.Controllers
placementProfile.ForEach(profile =>
{
profile.PlacementStatus = "DONE";
profile.LastUpdateFullName = FullName ?? "System Administrator";
profile.LastUpdateUserId = UserId ?? "";
profile.LastUpdatedAt = DateTime.Now;
if (req.refIds.Length > 0)
{
profile.commandId = req.refIds[0].commandId;
@ -2441,6 +2444,9 @@ namespace BMA.EHR.Placement.Service.Controllers
placementProfile.ForEach(profile =>
{
profile.PlacementStatus = "DONE";
profile.LastUpdateFullName = FullName ?? "System Administrator";
profile.LastUpdateUserId = UserId ?? "";
profile.LastUpdatedAt = DateTime.Now;
if (req.refIds.Length > 0)
{
profile.commandId = req.refIds[0].commandId;
@ -2710,7 +2716,13 @@ namespace BMA.EHR.Placement.Service.Controllers
#endregion
// New: Linear Flow - Task #224 ปรับให้เป็น process ที่ควรบันทึกตามลำดับ
data.ForEach(profile => profile.PlacementStatus = "DONE");
data.ForEach(profile =>
{
profile.PlacementStatus = "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)
@ -2960,7 +2972,13 @@ namespace BMA.EHR.Placement.Service.Controllers
#endregion
// New: Linear Flow - Task #224 ปรับให้เป็น process ที่ควรบันทึกตามลำดับ
data.ForEach(profile => profile.PlacementStatus = "DONE");
data.ForEach(profile =>
{
profile.PlacementStatus = "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)
@ -3193,7 +3211,13 @@ namespace BMA.EHR.Placement.Service.Controllers
#endregion
// New: Linear Flow - Task #224 ปรับให้เป็น process ที่ควรบันทึกตามลำดับ
data.ForEach(profile => profile.PlacementStatus = "DONE");
data.ForEach(profile =>
{
profile.PlacementStatus = "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)