package com.ann.repository; import com.ann.entity.interfaceEntity.InterfaceHisCache; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.transaction.annotation.Transactional; import java.util.List; public interface InterfaceHisCacheRepository extends JpaRepository { public List findAllByStateAndPdfPathIsNotNull(String state); // @Transactional // @Modifying // @Query(value = "update InterfaceHisCache o set o.state = ?1 where o.id = ?2 and o.state = 0 and o.type = ?3 ") // public Integer updateStateById(Integer state, String id, Integer type); }