This commit is contained in:
parent
d6e4426e08
commit
7d9c3fa46b
1 changed files with 6 additions and 1 deletions
|
|
@ -230,7 +230,12 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
else if (role == "NORMAL")
|
||||
{
|
||||
placementAppointments = placementAppointments
|
||||
.Where(x => node == 0 ? x.child1DnaId == null : (node == 1 ? x.child2DnaId == null : (node == 2 ? x.child3DnaId == null : (node == 3 ? x.child4DnaId == null : true)))).ToList();
|
||||
.Where(
|
||||
x => node == 0 ? x.child1DnaId == null
|
||||
: (node == 1 ? x.child1DnaId != null && x.child2DnaId == null
|
||||
: (node == 2 ? x.child2DnaId != null && x.child3DnaId == null
|
||||
: (node == 3 ? x.child3DnaId != null && x.child4DnaId == null : true)))
|
||||
).ToList();
|
||||
}
|
||||
return Success(placementAppointments);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue