spring data jap 批量更新 in

批量更新

@Repository
@Transactional
@Table(name = "AppWordRank")
@Qualifier(value = "appWordRankRepository")
public interface AppWordRankRepository extends JpaRepository , JpaSpecificationExecutor {
    @Modifying
    @Query("update AppWordRank a set a.status = ?1  where a.id in ?2")
    int updateAppWordRankStatus(Integer status,List id);

}

你可能感兴趣的:(批量,spring-data-jpa)