ตัด step จัดที่สอบออก

This commit is contained in:
Kittapath 2023-03-29 01:00:43 +07:00
parent e2106f9a16
commit 5c7a655a66
2 changed files with 13 additions and 4 deletions

View file

@ -651,7 +651,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
{ {
try try
{ {
await _candidateService.AdminCheckCandidateService(candidate, item.Status ? "checkSeat" : "rejectPayment", item); await _candidateService.AdminCheckCandidateService(candidate, item.Status ? "done" : "rejectPayment", item);
return Success(); return Success();
} }

View file

@ -129,9 +129,18 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
if (periodExam == null) if (periodExam == null)
throw new Exception(GlobalMessages.ExamNotFound); throw new Exception(GlobalMessages.ExamNotFound);
return await _context.Candidates.AsQueryable() if (status == "all")
.Where(x => x.PeriodExam == periodExam && x.Status == status) {
.ToListAsync(); return await _context.Candidates.AsQueryable()
.Where(x => x.PeriodExam == periodExam && x.Status != "register" && x.Status != "rejectRegister")
.ToListAsync();
}
else
{
return await _context.Candidates.AsQueryable()
.Where(x => x.PeriodExam == periodExam && x.Status == status)
.ToListAsync();
}
} }
#endregion #endregion