fix Report ระบบลา
This commit is contained in:
parent
ef415217c8
commit
bcbac7814d
4 changed files with 92 additions and 59 deletions
|
|
@ -80,6 +80,23 @@ namespace BMA.EHR.Application.Repositories
|
|||
}
|
||||
}
|
||||
|
||||
public async Task<List<Profile>> GetProfileWithKeycloak()
|
||||
{
|
||||
try
|
||||
{
|
||||
var data = await _dbContext.Set<Profile>().AsQueryable()
|
||||
.Where(x => x.ProfileType == "officer")
|
||||
.Where(x => x.KeycloakId != null)
|
||||
.ToListAsync();
|
||||
|
||||
return data;
|
||||
}
|
||||
catch
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<List<Profile>> SearchProfile(string? citizenId, string? firstName, string? lastName)
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue