package com.tykj.dev.device.user.subject.dao;

import com.tykj.dev.device.user.subject.entity.UnitStoreLocation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface UnitStoreLocationDao extends JpaRepository<UnitStoreLocation, Integer>, JpaSpecificationExecutor<UnitStoreLocation> {
    List<UnitStoreLocation> findAllByUnitIdAndTypeName(Integer unitId,String typeName);
}
