fix bug
This commit is contained in:
parent
cf6f0feef5
commit
ad72bc7ff6
2 changed files with 3 additions and 3 deletions
|
|
@ -8911,11 +8911,11 @@ namespace BMA.EHR.Application.Repositories
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get Data Table insignai_has_profile
|
// Get Data Table insignai_has_profile
|
||||||
public async Task<List<InsigniaRequestItem>> InsigniaHasProfile(Guid period, Guid ocId, string status)
|
public async Task<List<InsigniaRequestItem>> InsigniaHasProfile(Guid period, Guid ocId, string status, string type = "officer")
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var id = await GetRequestId(period, ocId);
|
var id = await GetRequestIdByTypeAsync(period, ocId, type);
|
||||||
if (id != null)
|
if (id != null)
|
||||||
{
|
{
|
||||||
var raw_result = _dbContext.Set<InsigniaRequestProfile>()
|
var raw_result = _dbContext.Set<InsigniaRequestProfile>()
|
||||||
|
|
|
||||||
|
|
@ -336,7 +336,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
//}
|
//}
|
||||||
if (role.Trim().ToUpper() == "OFFICER")
|
if (role.Trim().ToUpper() == "OFFICER")
|
||||||
{
|
{
|
||||||
resend.Items = (await _repository.InsigniaHasProfile(result.PeriodId, ocId, status))
|
resend.Items = (await _repository.InsigniaHasProfile(result.PeriodId, ocId, status, type))
|
||||||
.Where(x => x.ProfileType!.ToLower() == type.ToLower()).ToList();
|
.Where(x => x.ProfileType!.ToLower() == type.ToLower()).ToList();
|
||||||
return Success(resend);
|
return Success(resend);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue