ออกคำสั่งถึงแก่กรรม

This commit is contained in:
kittapath 2025-06-20 12:45:18 +07:00
parent 8870139cbe
commit 3e8e461ebe
4 changed files with 70 additions and 29 deletions

View file

@ -541,7 +541,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
[HttpPost("command/report")]
public async Task<ActionResult<ResponseObject>> PostReport([FromBody] ReportPersonRequest req)
{
var placementProfiles = await _context.RetirementResigns
var placementProfiles = await _context.RetirementOuts
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
@ -560,7 +560,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
[HttpPost("command/report/delete")]
public async Task<ActionResult<ResponseObject>> PostDeleteReport([FromBody] ReportPersonRequest req)
{
var placementProfiles = await _context.RetirementResigns
var placementProfiles = await _context.RetirementOuts
.Where(x => req.refIds.Contains(x.Id.ToString()))
// .Where(x => x.Status.ToUpper() == "REPORT")
.ToListAsync();