批量更新

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

}

asoren
404 声望15 粉丝

引用和评论

0 条评论