diff --git a/Controllers/RecruitController.cs b/Controllers/RecruitController.cs index 32d064c..7b44a0e 100644 --- a/Controllers/RecruitController.cs +++ b/Controllers/RecruitController.cs @@ -2238,7 +2238,8 @@ namespace BMA.EHR.Recruit.Service.Controllers var this_year = DateTime.Now.Year.ToCeYear(); var periods = (from r in _context.RecruitImports.AsQueryable().Include(x => x.RecruitImages) - where r.Year == this_year + where (r.AnnouncementStartDate != null && r.AnnouncementStartDate.Value.Year == this_year) || + (r.AnnouncementEndDate != null && r.AnnouncementEndDate.Value.Year == this_year) orderby r.AnnouncementStartDate descending select new {