test บรรจุ พิการ
This commit is contained in:
parent
80d678a582
commit
b296304697
6 changed files with 309 additions and 203 deletions
|
|
@ -27,6 +27,7 @@ using System.Text;
|
|||
using Newtonsoft.Json.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using System.Net.Http.Headers;
|
||||
using BMA.EHR.Recurit.Exam.Service.Request;
|
||||
|
||||
namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
||||
{
|
||||
|
|
@ -2098,7 +2099,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
|||
// 3️. ดึงสรุปคะแนน
|
||||
// ---------------------------
|
||||
dynamic header = null;
|
||||
int _count = await _context.Disables.Where(x=> x.PeriodExam.Id == id).CountAsync();
|
||||
int _count = await _context.Disables.Where(x => x.PeriodExam.Id == id).CountAsync();
|
||||
if (data.Count > 0)
|
||||
{
|
||||
header = await _context.DisableScores
|
||||
|
|
@ -2432,15 +2433,15 @@ namespace BMA.EHR.Recurit.Exam.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>> UpdateAsyncDisableToPlacement(Guid examId)
|
||||
public async Task<ActionResult<ResponseObject>> UpdateAsyncDisableToPlacement(Guid examId, [FromBody] RecruitDateRequest req)
|
||||
{
|
||||
try
|
||||
{
|
||||
await _periodExamService.UpdateAsyncDisableToPlacement(examId);
|
||||
await _periodExamService.UpdateAsyncDisableToPlacement(examId, req.AccountStartDate);
|
||||
return Success();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue