动态批量插入有几个问题
1表名动态自定义
2列动态自定义
3批量
insert into
${map.tableName}
(
separator=",">
`${key}`
)
values
(
separator=",">
#{value}
)
java代码:
private void insertBatchList(String tableName,Map mapHead,List>list){
Map batchList = new HashMap<>();
batchList.put("tableName", tableName);
batchList.put("mapHead",mapHead);
batchList.put("list",list);
insertTableListDynamic(batchList);
}