fix code leave and insignia
This commit is contained in:
parent
5a208ebb17
commit
5319aa607b
10 changed files with 597 additions and 16 deletions
|
|
@ -974,17 +974,18 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
|||
.Where(x => x.RequestStatus == "st1")
|
||||
.Select(x => x.OrganizationId)
|
||||
.ToListAsync();
|
||||
var orgAllCount = await _context.Organizations
|
||||
.Where(x => x.OrganizationOrganization != null)
|
||||
.Where(x => x.OrganizationType != null)
|
||||
.Where(x => x.OrganizationType.Name == "หน่วยงาน")
|
||||
.Where(x => orgIdSend.Contains(x.Id))
|
||||
|
||||
|
||||
var organizations = await _userProfileRepository.GetActiveRootAsync(AccessToken);
|
||||
|
||||
var orgAllCount = organizations
|
||||
.Where(x => !orgIdSend.Contains(x.Id))
|
||||
.Select(x => new
|
||||
{
|
||||
OrgId = x.Id,
|
||||
OrgName = x.OrganizationOrganization.Name
|
||||
OrgName = x.OrgRootName
|
||||
})
|
||||
.ToListAsync();
|
||||
.ToList();
|
||||
|
||||
return Success(orgAllCount);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue