ปรับให้เรียงข้าราชการก่อนลูกจ้างประจำ

This commit is contained in:
Bright 2024-12-18 18:39:05 +07:00
parent b042f471b4
commit e409277518
5 changed files with 10 additions and 5 deletions

View file

@ -148,7 +148,8 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
IdComplaint = x.DisciplineInvestigate.DisciplineComplaint.Id,//id ข้อมูลเรื่องร้องเรียน
RespondentType = x.RespondentType,//ผู้ถูกสืบสวน
Persons = x.DisciplineDisciplinary_ProfileComplaintInvestigates.Where(x => x.IsReport == "NEW")
.OrderByDescending(p => p.CreatedAt)
.OrderByDescending(p => p.profileType)
.ThenByDescending(p => p.CreatedAt)
.Select(p => new
{
Id = p.Id,