package com.example.removetolocal.newentity.dao;

import com.example.removetolocal.newentity.entity.RepairDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface NewRepairDetailDao extends JpaRepository<RepairDetail, Integer>, JpaSpecificationExecutor<RepairDetail> {
    List<RepairDetail> findByDeviceRepairBillId(Integer billId);
    RepairDetail findByPid(Integer pid);
    RepairDetail findByOldId(Integer oldId);
}
