MyBatis 基于注解的批量插入数据
@Insert({"<script>",
"insert into tmc_constract_detail ",
"<foreach collection='list' item='record' index = 'index' separator=','>",
"values(",
"#{record.constractId,jdbcType=VARCHAR}, #{record.modifyCode,jdbcType=VARCHAR}, " +
"#{record.constractStatus,jdbcType=VARCHAR}, #{record.updateDate,jdbcType=DATE}, " +
"#{record.userId,jdbcType=VARCHAR}, #{record.description,jdbcType=VARCHAR} ",
"</foreach> ",
")</script>"})
void updatesStatus(List<TmcConstractDetail> records);
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。