เพิ่มapi list ตำแหน่งที่เลือกไปแล้ว
This commit is contained in:
parent
94b1e3b848
commit
c301296605
1 changed files with 16 additions and 4 deletions
|
|
@ -16,10 +16,10 @@ using System.Security.Cryptography;
|
||||||
namespace BMA.EHR.Placement.Service.Controllers
|
namespace BMA.EHR.Placement.Service.Controllers
|
||||||
{
|
{
|
||||||
[Route("api/v{version:apiVersion}/placement")]
|
[Route("api/v{version:apiVersion}/placement")]
|
||||||
[ApiVersion("1.0")]
|
[ApiVersion("1.0")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[Produces("application/json")]
|
[Produces("application/json")]
|
||||||
[Authorize]
|
[Authorize]
|
||||||
[SwaggerTag("ระบบบรรจุ")]
|
[SwaggerTag("ระบบบรรจุ")]
|
||||||
public class PlacementController : BaseController
|
public class PlacementController : BaseController
|
||||||
{
|
{
|
||||||
|
|
@ -316,6 +316,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
ExamRound = x.ExamRound,
|
ExamRound = x.ExamRound,
|
||||||
Pass = x.Pass,
|
Pass = x.Pass,
|
||||||
IsProperty = x.IsProperty == null ? null : Newtonsoft.Json.JsonConvert.DeserializeObject<List<PersonPropertyRequest>>(x.IsProperty),
|
IsProperty = x.IsProperty == null ? null : Newtonsoft.Json.JsonConvert.DeserializeObject<List<PersonPropertyRequest>>(x.IsProperty),
|
||||||
|
BmaOfficer = _documentService.CheckBmaOfficer(x.CitizenId),
|
||||||
}).FirstOrDefaultAsync(x => x.PersonalId == personalId);
|
}).FirstOrDefaultAsync(x => x.PersonalId == personalId);
|
||||||
|
|
||||||
return Success(data);
|
return Success(data);
|
||||||
|
|
@ -869,5 +870,16 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
return Success();
|
return Success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpGet("position/use")]
|
||||||
|
public async Task<ActionResult<ResponseObject>> GetPositionUse()
|
||||||
|
{
|
||||||
|
var position = await _context.PlacementProfiles
|
||||||
|
.Where(x => x.PositionNumber != null)
|
||||||
|
.Select(x => x.PositionNumber.Id)
|
||||||
|
.ToListAsync();
|
||||||
|
|
||||||
|
return Success(position);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue