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

EmployeeListServiceShouldNotReturnInActiveEmployee

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