package com.bcxin.tenant.domain.repositories;

import com.bcxin.Infrastructures.EntityRepository;
import com.bcxin.tenant.domain.entities.DepartmentEmployeeRelationEntity;

import java.util.List;

public interface DepartmentEmployeeRelationRepository extends EntityRepository<DepartmentEmployeeRelationEntity, String> {

    List<DepartmentEmployeeRelationEntity> findListByDepartmentIdAndEmployeeIds(String departmentId, List<String> employeeIds);

    int updateLeaderTypeFalseByDepartmentId(String departmentId);

    int updateLeaderTypeTrueByDepartmentIdAndEmployeeIds(String departmentId, List<String> employeeIds);

}
