This commit is contained in:
parent
4d500fcdcd
commit
089e70c7c7
1 changed files with 12 additions and 0 deletions
|
|
@ -7793,6 +7793,18 @@ namespace BMA.EHR.Application.Repositories
|
||||||
// result_candidate.Add(r);
|
// result_candidate.Add(r);
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
if (period.Round != 1)
|
||||||
|
{
|
||||||
|
var insigniaIdList = await _dbContext.Set<Insignia>()
|
||||||
|
.Include(x => x.InsigniaType)
|
||||||
|
.Where(x => x.InsigniaType!.Name == "ชั้นสายสะพาย")
|
||||||
|
.Select(x => x.Id)
|
||||||
|
.ToListAsync();
|
||||||
|
|
||||||
|
|
||||||
|
result_candidate = result_candidate.Where(x => insigniaIdList.Contains(x.RequestInsignia.Id)).ToList();
|
||||||
|
}
|
||||||
|
|
||||||
return result_candidate.OrderBy(x => x.Seq).ThenBy(x => x.Gender).ThenBy(x => x.ProfileId).ToList();
|
return result_candidate.OrderBy(x => x.Seq).ThenBy(x => x.Gender).ThenBy(x => x.ProfileId).ToList();
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue