Unverified Commit 4d14eb7e authored by mshaik-nisum-com's avatar mshaik-nisum-com Committed by GitHub

Merge pull request #132 from nisum-inc/FEATURE/EmployeeListServiceShouldNotReturnInActiveEmployee

EmployeeListServiceShouldNotReturnInActiveEmployee
parents 133ef00c 64b10b12
......@@ -19,4 +19,6 @@ public interface EmployeeRolesRepo
String functionalGroup);
List<EmployeeRoles> findByEmpStatusOrderByEmployeeNameAsc(String empStatus);
List<EmployeeRoles> findByEmpStatus(String status);
}
......@@ -123,7 +123,8 @@ public class UserServiceImpl implements UserService {
@Override
public List<EmployeeRoles> getEmployeeRoles() throws MyTimeException {
return employeeRolesRepo.findAll();
//return employeeRolesRepo.findAll();
return employeeRolesRepo.findByEmpStatus(MyTimeUtils.ACTIVE);
}
@Override
......
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