From 081c00b869aee9dc11983679b2de4dfde1176924 Mon Sep 17 00:00:00 2001 From: harid Date: Tue, 12 May 2026 16:24:39 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B9=80=E0=B8=A1=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=9E=E0=B9=89=E0=B8=99=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=AA=E0=B8=AD=E0=B8=9A=2015=20=E0=B8=A7=E0=B8=B1=E0=B8=99?= =?UTF-8?q?=20=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B9=83=E0=B8=AB=E0=B9=89?= =?UTF-8?q?=E0=B8=84=E0=B8=A5=E0=B8=B4=E0=B8=81=E0=B8=94=E0=B8=B9=E0=B8=82?= =?UTF-8?q?=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B9=84=E0=B8=94?= =?UTF-8?q?=E0=B9=89=20#2485?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Response/CandidateStatusResponse.cs | 3 +++ Services/CandidateService.cs | 14 +++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Response/CandidateStatusResponse.cs b/Response/CandidateStatusResponse.cs index e36d0a7..ac6b699 100644 --- a/Response/CandidateStatusResponse.cs +++ b/Response/CandidateStatusResponse.cs @@ -9,5 +9,8 @@ namespace BMA.EHR.Recurit.Exam.Service.Response public string? RejectDetail { get; set; } public bool? IsShowExamInfo { get; set; } + + public bool? IsShowResult { get; set; } + } } diff --git a/Services/CandidateService.cs b/Services/CandidateService.cs index fc1ba9f..64c57a6 100644 --- a/Services/CandidateService.cs +++ b/Services/CandidateService.cs @@ -1978,7 +1978,19 @@ namespace BMA.EHR.Recurit.Exam.Service.Services if (candidate == null) throw new Exception(GlobalMessages.CandidateNotFound); - return new CandidateStatusResponse { Status = candidate.Status, RejectDetail = candidate.RejectDetail, IsShowExamInfo = candidate.IsShowExamInfo }; + bool IsShowResult = true; + if (exam.AnnouncementDate != null) + { + var showResultEndDate = exam.AnnouncementDate.Value.Date.AddDays(15); + IsShowResult = DateTime.Now.Date <= showResultEndDate; + } + + return new CandidateStatusResponse { + Status = candidate.Status, + RejectDetail = candidate.RejectDetail, + IsShowExamInfo = candidate.IsShowExamInfo, + IsShowResult = IsShowResult, + }; } public async Task UserCheckCandidateService(string examId, string positionId, string status)