package cn.reghao.autodop.dmaster.machine.db.repository;

import cn.reghao.autodop.dmaster.machine.model.po.MachineInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author reghao
 * @date 2020-01-21 14:53:03
 */
public interface MachineInfoRepository
        extends JpaRepository<MachineInfo, Integer>, JpaSpecificationExecutor<MachineInfo> {
    MachineInfo findByMachineId(String machineId);
    Page<MachineInfo> findByIsDeleteFalse(Pageable pageable);
}
