You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
770 B
Java

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<InterfaceHisCache,String> {
public List<InterfaceHisCache> 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);
}