package com.nisum.myteam.repository;

import java.util.List;
import java.util.Set;

import org.springframework.data.mongodb.repository.MongoRepository;

import com.nisum.myteam.model.dao.Employee;

public interface EmployeeRepo
        extends MongoRepository<Employee, String> {
	Employee findByEmployeeIdAndEmpStatus(String employeeId,String empStatus);

    Employee findByEmailId(String emailId);

    Employee findByEmployeeId(String employeeId);

    Employee findByEmployeeName(String employeeName);

    List<Employee> findByEmpStatusAndFunctionalGroup(String empStatus,
            String functionalGroup);

    List<Employee> findByEmpStatusOrderByEmployeeNameAsc(String empStatus);
    
    List<Employee> findByEmpStatus(String status);
    
    List<Employee> findByEmployeeIdIn(Set<String> empIdsSet);
    
    List<Employee> findByEmpSubStatusOrderByEmployeeNameAsc(String subStatus);


    List<Employee> findByEmpStatusAndShiftLikeOrderByEmployeeIdDesc(String status,String shift);
}
 
