ออกคำสั่งถึงแก่กรรม
This commit is contained in:
parent
8870139cbe
commit
3e8e461ebe
4 changed files with 70 additions and 29 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue