แก้สถ่นะออกคำสั่ง
Some checks failed
release-dev / release-dev (push) Failing after 12s

This commit is contained in:
moss 2025-04-03 11:13:25 +07:00
parent e160e1e552
commit e947f08f8e
14 changed files with 60 additions and 39 deletions

View file

@ -1152,6 +1152,15 @@ namespace BMA.EHR.Retirement.Service.Controllers
}
updated.IsCancel = true;
}
else
{
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]);
var _res = await client.DeleteAsync($"{_configuration["API"]}/org/command/tab2Cancel23/{updated.Id}");
}
}
updated.Status = "CANCEL";
updated.LastUpdateFullName = FullName ?? "System Administrator";
updated.LastUpdateUserId = UserId ?? "";
@ -1557,7 +1566,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
var placementProfiles = await _context.RetirementResignEmployees
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
placementProfiles.ForEach(profile => profile.Status = "REPORT");
placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}
@ -1742,7 +1751,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
var placementProfiles = await _context.RetirementResignEmployeeCancels
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
placementProfiles.ForEach(profile => profile.Status = "REPORT");
placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}