เพิ่มฟิลด์สถานภาพ
Some checks failed
release-dev / release-dev (push) Failing after 10s

This commit is contained in:
Bright 2024-12-27 10:57:52 +07:00
parent 8566987275
commit ad70e8164c
2 changed files with 7 additions and 1 deletions

View file

@ -259,6 +259,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
Oc = x.Oc,
Position = x.Position,
LastUpdatedAt = x.LastUpdatedAt,
profileType = x.profileType,
HistoryStatus = x.DisciplineComplaint_Appeal_Historys.Select(p => new
{
Status = p.Status,
@ -298,6 +299,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
_data.Oc,
_data.Position,
_data.LastUpdatedAt,
_data.profileType,
_data.HistoryStatus,
disciplineComplaint_Appeal_Docs,
};
@ -432,6 +434,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
ProfileId = req.ProfileId,
Position = req.Position,
Oc = req.Oc,
profileType = req.profileType,
CreatedFullName = FullName ?? "System Administrator",
CreatedUserId = UserId ?? "",
CreatedAt = DateTime.Now,
@ -631,8 +634,10 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
CitizenId = x.CitizenId,
ProfileId = x.ProfileId,
LastUpdatedAt = x.LastUpdatedAt,
profileType = x.profileType
})
.OrderByDescending(x => x.LastUpdatedAt)
.OrderByDescending(x => x.profileType)
.ThenByDescending(x => x.LastUpdatedAt)
.Skip((page - 1) * pageSize)
.Take(pageSize)
.ToList();

View file

@ -15,6 +15,7 @@ namespace BMA.EHR.Discipline.Service.Requests
public string? Fullname { get; set; }
public string? Position { get; set; }
public string? Oc { get; set; }
public string? profileType { get; set; }
public List<FormFile>? File { get; set; }
}
}