package com.bcxin.tenant.domain.repositories;

import com.bcxin.Infrastructures.EntityRepository;
import com.bcxin.tenant.domain.entities.EmployeeEventEntity;
import com.bcxin.tenant.domain.enums.EmployeeEventType;

import java.util.ArrayList;
import java.util.Collection;

public interface EmployeeEventRepository extends EntityRepository<EmployeeEventEntity,String> {

    /*
         通过事件类型获取最新的记录
     */
    ArrayList<EmployeeEventEntity> getLatelyByIdAndType(String id, EmployeeEventType type);
}
