API โอนชื่อผู้ผ่านการสอบแข่งขันตามเลขบัตรประชาชนไปบรรจุ
All checks were successful
Build & Deploy on Dev / build (push) Successful in 58s

This commit is contained in:
harid 2026-07-22 17:10:22 +07:00
parent 67253337a9
commit c6e396cc94
3 changed files with 336 additions and 0 deletions

View file

@ -2360,6 +2360,32 @@ namespace BMA.EHR.Recruit.Controllers
}
}
/// <summary>
/// โอนชื่อผู้ผ่านการสอบแข่งขันตามเลขบัตรประชาชนไปบรรจุ
/// </summary>
/// <param name="examId">รหัสรอบสมัคร</param>
/// <param name="req">ข้อมูลรายการเลขบัตรประชาชนและวันเริ่มงาน</param>
/// <returns></returns>
/// <response code="200">เมื่อโอนคนแข่งขันไปบรรจุสำเร็จ</response>
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
[HttpPost("placement-selective/{examId:length(36)}")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
public async Task<ActionResult<ResponseObject>> UpdateAsyncSelectivePlacement(Guid examId, [FromBody] SelectivePlacementRequest req)
{
try
{
await _recruitService.UpdateAsyncSelectivePlacement(examId, req.CitizenIds, req.AccountStartDate);
return Success();
}
catch (Exception ex)
{
return Error(ex);
}
}
#endregion
#region " Report "