filter ตามวันที่ประกาศ
This commit is contained in:
parent
a91143dfce
commit
11a683bf9b
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue