white knight

导航

 

参考 https://blog.csdn.net/a3025056/article/details/79022816

 

@Modifying
@Transactional /* 如果在事务中使用需加上此注解 */
@Query(nativeQuery=true, value="update tableA set field1 = 'value1', field2 = :value2 where field3 in (:list1)")
void lock(@Param("ids") List<String> list1, @Param("reason") String value2);
posted on 2018-05-15 11:26  white knight  阅读(895)  评论(0编辑  收藏  举报