เก็บ lastUpdate หากมีเช็คออกคำสั่งย้อนหลัง
This commit is contained in:
parent
bf5dc2cf19
commit
5021c00dd3
10 changed files with 94 additions and 23 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue