package com.yeejoin.amos.boot.module.elevator.biz.dao;

import com.yeejoin.amos.boot.module.elevator.api.entity.EsElevator;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

/**
 * @author fengwang
 * @date 2021-09-26.
 */
@Repository
public interface ESElavtorRepository extends PagingAndSortingRepository<EsElevator, Long> {

    Long countByVersion(Long version);

    void deleteByVersionIsNot(Long version);
}
