Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Sign in
Toggle navigation
Open sidebar
Kamal Agrawal
StateStreetProject-dev
Commits
8797c4c3
Commit
8797c4c3
authored
Jun 09, 2021
by
manishatyagi
Browse files
bug fix
parent
d760aa11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/main/java/com/statestreet/dao/UserRepositoryImpl.java
src/main/java/com/statestreet/dao/UserRepositoryImpl.java
+1
-2
No files found.
src/main/java/com/statestreet/dao/UserRepositoryImpl.java
View file @
8797c4c3
...
...
@@ -147,9 +147,8 @@ public class UserRepositoryImpl implements UserRepositoryCustom{
criteriaForAgent
=
new
Criteria
().
andOperator
(
Criteria
.
where
(
"lob._id"
).
is
(
lobId
));
else
criteriaForAgent
=
new
Criteria
().
andOperator
(
Criteria
.
where
(
"lob._id"
).
is
(
lobId
),
Criteria
.
where
(
"subLob._id"
).
is
(
subLobId
));
Criteria
criteriaForManager
=
Criteria
.
where
(
"lob._id"
).
is
(
lobId
);
Query
query
=
new
Query
();
query
.
addCriteria
(
new
Criteria
().
orOperator
(
criteriaForAgent
,
criteriaForManager
)
);
query
.
addCriteria
(
criteriaForAgent
);
log
.
debug
(
"Response returned from UserRepositoryImpl -- updateUser method"
);
return
mongoTemplate
.
find
(
query
,
UserMaster
.
class
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment