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 ...@@ -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