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

import com.tykj.dev.device.loss.entity.domain.DeviceLoss;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface LossDao extends JpaRepository<DeviceLoss, Integer>, JpaSpecificationExecutor<DeviceLoss> {

    List<DeviceLoss> findAllByUnitId(Integer unitId);
}
