test parent
This commit is contained in:
parent
84ab5e79d6
commit
f97e643ac1
20 changed files with 155 additions and 264 deletions
|
|
@ -104,14 +104,10 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
? profileAdmin?.RootDnaId
|
||||
: "";
|
||||
}
|
||||
else if (role == "ROOT")
|
||||
else if (role == "ROOT" && role == "PARENT")
|
||||
{
|
||||
nodeId = profileAdmin?.RootDnaId;
|
||||
}
|
||||
else if (role == "PARENT")
|
||||
{
|
||||
nodeId = profileAdmin?.Child1DnaId;
|
||||
}
|
||||
|
||||
var node = profileAdmin?.Node;
|
||||
var retirementDeceaseds = await _context.RetirementDeceaseds.AsQueryable()
|
||||
|
|
@ -167,7 +163,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
else if (role == "PARENT")
|
||||
{
|
||||
retirementDeceaseds = retirementDeceaseds
|
||||
.Where(x => x.child1DnaId == nodeId).ToList();
|
||||
.Where(x => x.rootDnaId == nodeId && x.child1DnaId != null).ToList();
|
||||
}
|
||||
else if (role == "NORMAL")
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue