package com.example.removetolocal.newentity.dao;


import com.example.removetolocal.newentity.entity.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);
}
