This commit is contained in:
parent
9718ff149c
commit
12aceb5e00
8 changed files with 24 additions and 12 deletions
|
|
@ -69,7 +69,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
|
||||
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
|
||||
[HttpGet()]
|
||||
public async Task<ActionResult<ResponseObject>> GetListByAdmin()
|
||||
public async Task<ActionResult<ResponseObject>> GetListByAdmin(string? status = "ALL")
|
||||
{
|
||||
var getPermission = await _permission.GetPermissionOrgAPIAsync("LIST", "SYS_TRANSFER_RECEIVE", UserId);
|
||||
var jsonData = JsonConvert.DeserializeObject<JObject>(getPermission);
|
||||
|
|
@ -164,6 +164,8 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
p.profileId,
|
||||
})
|
||||
.ToListAsync();
|
||||
if (status != null && status.Trim().ToUpper() != "ALL")
|
||||
placementReceives = placementReceives.Where(x => x.Status.Contains(status.Trim().ToUpper())).ToList();
|
||||
return Success(placementReceives);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue