This commit is contained in:
kittapath 2025-10-11 18:37:46 +07:00
parent 0c8b88c304
commit fb726ca789
3 changed files with 173 additions and 126 deletions

View file

@ -2034,8 +2034,8 @@ namespace BMA.EHR.Recruit.Service.Controllers
exam_order = x.recruit.RecruitImport != null && x.recruit.RecruitImport.Order != null
? x.recruit.RecruitImport.Order.ToString()
: "",
score_year = x.recruit.RecruitImport != null && x.recruit.RecruitImport.Year != null
? x.recruit.RecruitImport.Year.ToThaiYear().ToString()
score_year = x.recruit.RecruitImport != null && x.recruit.RecruitImport.Year != null
? x.recruit.RecruitImport.Year.ToThaiYear().ToString()
: "",
})
.ToListAsync();
@ -2074,7 +2074,7 @@ namespace BMA.EHR.Recruit.Service.Controllers
}
else
{
header = new
header = new
{
count = _count,
pass = 0,
@ -2083,7 +2083,7 @@ namespace BMA.EHR.Recruit.Service.Controllers
other = 0
};
}
// ---------------------------
// 4. ดึง period
@ -2611,15 +2611,15 @@ namespace BMA.EHR.Recruit.Service.Controllers
/// <response code="200">เมื่อโอนคนแข่งขันไปบรรจุสำเร็จ</response>
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
[HttpGet("placement/{examId:length(36)}")]
[HttpPost("placement/{examId:length(36)}")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
public async Task<ActionResult<ResponseObject>> UpdateAsyncRecruitToPlacement(Guid examId)
public async Task<ActionResult<ResponseObject>> UpdateAsyncRecruitToPlacement(Guid examId, [FromBody] RecruitDateRequest req)
{
try
{
await _recruitService.UpdateAsyncRecruitToPlacement(examId);
await _recruitService.UpdateAsyncRecruitToPlacement(examId, req.AccountStartDate);
return Success();
}
catch (Exception ex)