package com.bcxin.tenant.domain.repositories;

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

import java.util.List;

public interface ContractRepository extends EntityRepository<ContractEntity,String> {

    ContractEntity getByOrganIdAndId(String organizationId, String id);

    List<ContractEntity> getByOrganIdAndIds(String organizationId, List<String> ids);

    List<ContractEntity> getByOrganIdAndEmployeeId(String organizationId, String employeeId);

    List<ContractEntity> getByOrganIdAndEmployeeIds(String organizationId, List<String> employeeIds);
}
