package com.tykj.dev.device.library.repository;


import com.tykj.dev.device.library.subject.domin.DeviceChange;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author dengdiyi
 */
public interface DeviceChangeDao extends JpaRepository<DeviceChange, Integer>, JpaSpecificationExecutor<DeviceChange> {
    /**
     * @param id 新装备Id
     *           根据换新装备id查询装备更换记录
     */
    DeviceChange findByNewDeviceId(Integer id);
}
