โอนคนสรรหาไปบรรจุ
This commit is contained in:
parent
9a53f34107
commit
7fbdf971fa
13 changed files with 530 additions and 312 deletions
|
|
@ -42,6 +42,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
|||
private readonly MinIOService _minioService;
|
||||
private readonly IWebHostEnvironment _webHostEnvironment;
|
||||
private readonly DisableService _disableService;
|
||||
private readonly PeriodExamService _periodExamService;
|
||||
|
||||
private readonly IHttpContextAccessor _httpContextAccessor;
|
||||
private readonly ILogger<DisableController> _logger;
|
||||
|
|
@ -55,6 +56,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
|||
MinIOService minioService,
|
||||
IWebHostEnvironment webHostEnvironment,
|
||||
DisableService disableService,
|
||||
PeriodExamService periodExamService,
|
||||
IHttpContextAccessor httpContextAccessor,
|
||||
ILogger<DisableController> logger)
|
||||
{
|
||||
|
|
@ -63,6 +65,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
|||
_minioService = minioService;
|
||||
_webHostEnvironment = webHostEnvironment;
|
||||
_disableService = disableService;
|
||||
_periodExamService = periodExamService;
|
||||
_httpContextAccessor = httpContextAccessor;
|
||||
_logger = logger;
|
||||
}
|
||||
|
|
@ -2048,6 +2051,31 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// โอนคนสรรหาไปบรรจุ
|
||||
/// </summary>
|
||||
/// <param name="examId">รหัสรอบสมัคร</param>
|
||||
/// <returns></returns>
|
||||
/// <response code="200">เมื่อโอนคนสรรหาไปบรรจุสำเร็จ</response>
|
||||
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
|
||||
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
|
||||
[HttpGet("placement/{examId:length(36)}")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
|
||||
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
|
||||
public async Task<ActionResult<ResponseObject>> UpdateAsyncDisableToPlacement(Guid examId)
|
||||
{
|
||||
try
|
||||
{
|
||||
await _periodExamService.UpdateAsyncDisableToPlacement(examId);
|
||||
return Success();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return Error(ex);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue