Skip to content

Commit

Permalink
Merge pull request #953 from egovernments/master
Browse files Browse the repository at this point in the history
Megre master to develop
  • Loading branch information
pradeepkumarcm-egov authored Sep 13, 2024
2 parents 42f81d7 + 6526545 commit 0c08591
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,11 @@ public EmployeeResponse searchListOfEmployee(EmployeeSearchCriteria criteria, Re
userSearchCriteria.put(HRMSConstants.HRMS_USER_SEARCH_CRITERA_ROLECODES,criteria.getRoles());
UserResponse userResponse = userService.getUserByTenantids(requestInfo, userSearchCriteria);
userChecked =true;
if(!CollectionUtils.isEmpty(userResponse.getUser())) {
if(CollectionUtils.isEmpty(userResponse.getUser())) {
List<Employee> employees = new ArrayList<>();
return EmployeeResponse.builder().responseInfo(factory.createResponseInfoFromRequestInfo(requestInfo, true))
.employees(employees).build();
} else {
mapOfUsers.putAll(userResponse.getUser().stream()
.collect(Collectors.toMap(User::getUuid, Function.identity())));
}
Expand Down

0 comments on commit 0c08591

Please sign in to comment.