|
@ -6,6 +6,8 @@ import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
|
|
import org.springframework.data.jpa.repository.Modifying; |
|
|
import org.springframework.data.jpa.repository.Modifying; |
|
|
import org.springframework.data.jpa.repository.Query; |
|
|
import org.springframework.data.jpa.repository.Query; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
public interface DeviceArchivesTagRepository extends JpaRepository<DeviceArchivesTag,String>, JpaSpecificationExecutor<DeviceArchivesTag> { |
|
|
public interface DeviceArchivesTagRepository extends JpaRepository<DeviceArchivesTag,String>, JpaSpecificationExecutor<DeviceArchivesTag> { |
|
|
|
|
|
|
|
|
@Modifying |
|
|
@Modifying |
|
@ -16,4 +18,8 @@ public interface DeviceArchivesTagRepository extends JpaRepository<DeviceArchive |
|
|
@Query(value = "update DeviceArchivesTag set tid = null where tid = ?1") |
|
|
@Query(value = "update DeviceArchivesTag set tid = null where tid = ?1") |
|
|
void unbindTag(String tid); |
|
|
void unbindTag(String tid); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<DeviceArchivesTag> findByDeviceInfoIdAndAndPosition(String deviceInfoId,String position); |
|
|
|
|
|
|
|
|
} |
|
|
} |