1.需求
后台管理页面,查询频道列表,需要批量修改频道的状态,批量上线和下线
2.MyBatis配置
这是mysql的配置,注意需要加上&allowMultiQueries=true配置
jdbc_url=jdbc:mysql://localhost:3306/go?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
<update id="batchUpdate" parameterType="java.util.List"> <foreach collection="list" item="item" index="index" open="" close="" separator=";"> update channels <set> state=${item.state} </set> where id = ${item.id} </foreach> </update>
继续阅读与本文标签相同的文章
上一篇 :
人工智能难点之——自然语言处理
下一篇 :
可编程技术在网络芯片上的应用
-
是真“开发者”,就来一“测”到底!
2026-05-19栏目: 教程
-
山西晋城携手阿里构建城市云平台,66个政务系统已上云
2026-05-19栏目: 教程
-
阿里云物联网平台设备升级OTA演示
2026-05-19栏目: 教程
-
如何做ASO?ASO和SEO有何异同?
2026-05-19栏目: 教程
-
C#开发学习人工智能的第一步
2026-05-19栏目: 教程
