Commit 8797c4c3 authored by manishatyagi's avatar manishatyagi
Browse files

bug fix

parent d760aa11
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment