filter ตามวันที่ประกาศ

This commit is contained in:
kittapath 2025-11-06 21:55:18 +07:00
parent a91143dfce
commit 11a683bf9b

View file

@ -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
{