เพิ่มประเภทคำสั่ง ในบรรจุ

This commit is contained in:
Kittapath 2023-09-08 16:41:23 +07:00
parent cba981e432
commit 08fd49a8d0
3 changed files with 10 additions and 14 deletions

View file

@ -101,6 +101,7 @@ namespace BMA.EHR.Placement.Service.Controllers
p.PositionNumberOld,
p.OrganizationPositionOld,
p.CreatedAt,
CommandType = p.CommandType == null ? null : p.CommandType.Name,
})
.ToListAsync();
if (PlacementAdmin == true)
@ -161,6 +162,7 @@ namespace BMA.EHR.Placement.Service.Controllers
p.PositionDate,
PlacementAppointmentDocs = p.PlacementAppointmentDocs.Where(d => d.Document != null).Select(d => new { d.Document.Id, d.Document.FileName }),
Avatar = p.Profile.Avatar == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.Profile.Avatar.Id,
CommandType = p.CommandType == null ? null : p.CommandType.Name,
})
.FirstOrDefaultAsync();
if (data == null)
@ -214,6 +216,7 @@ namespace BMA.EHR.Placement.Service.Controllers
data.PositionDate,
Avatar = data.Avatar == Guid.Parse("00000000-0000-0000-0000-000000000000") ? null : await _documentService.ImagesPath(data.Avatar),
Docs = placementAppointmentDocs,
data.CommandType,
};
return Success(_data);