mybatis用注解方式同时插入多行数据
@Insert("<script>" +
" insert into t_doc (id, name, doctype, url, typecode, uploadtime, filename)" +
" values " +
" <foreach collection = \"list\" item=\"item\" index=\"index\" separator=\",\">" +
.
原创
2020-08-14 08:17:20 ·
657 阅读 ·
0 评论