fix #1831
This commit is contained in:
parent
4375ca0da8
commit
bcfc7017b5
1 changed files with 1 additions and 3 deletions
|
|
@ -1583,12 +1583,10 @@ namespace BMA.EHR.Application.Repositories.Reports
|
||||||
.AsQueryable()
|
.AsQueryable()
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
insigniaPeriods = insigniaPeriods
|
insigniaPeriods = insigniaPeriods
|
||||||
.Where(x => x.StartDate <= DateTime.Now.Date || x.InsigniaRequests.Count == 0).ToList();
|
.Where(x => x.StartDate <= DateTime.Now.Date && x.InsigniaRequests.Count == 0).ToList();
|
||||||
|
|
||||||
foreach (var insigniaPeriod in insigniaPeriods)
|
foreach (var insigniaPeriod in insigniaPeriods)
|
||||||
{
|
{
|
||||||
if (insigniaPeriod.StartDate >= DateTime.Now.Date || insigniaPeriod.InsigniaRequests.Count > 0)
|
|
||||||
continue;
|
|
||||||
var organizations = await _userProfileRepository.GetActiveRootLatestAsync(AccessToken);
|
var organizations = await _userProfileRepository.GetActiveRootLatestAsync(AccessToken);
|
||||||
if (organizations == null)
|
if (organizations == null)
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue