Commit 64b10b12 authored by Sridhar Sathu's avatar Sridhar Sathu

EmployeeListServiceShouldNotReturnInActiveEmployee

parent 133ef00c
......@@ -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