package com.bcxin.tenant.domain.repositories;

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

import java.util.Date;
import java.util.List;

/**
 * description：定时删除部门表
 * author：linchunpeng
 * date：2024/11/12
 */
public interface TenantDepartmentScheduledDeleteRepository extends EntityRepository<TenantDepartmentScheduledDeleteEntity, Long> {

    List<TenantDepartmentScheduledDeleteEntity> findByScheduledDeleteTimeIsLessThanEqualAndActualDeleteTimeIsNull(Date nowTime);

}
