mybatis批量更新遇到的坑

##连接数据库的url中要加入?allowMultiQueries=true否则会报错

Dao
int updateGxMessageInfo(@Param(“list”)List list);
xml


update gx_message_info
set status=2
where id = #{item.id} and status <![CDATA[!=]]>1

猜你喜欢

转载自blog.csdn.net/liu_yang1314/article/details/84137755
今日推荐