From fee67ca8a0760315047a52fc4101a8f4f80b7a7f Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 11 十一月 2024 15:02:54 +0800 Subject: [PATCH] 1 --- src/main/java/com/moon/server/extend/InsertBatchMethod.java | 14 -------------- 1 files changed, 0 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/moon/server/extend/InsertBatchMethod.java b/src/main/java/com/moon/server/extend/InsertBatchMethod.java index a1b85e6..e31de93 100644 --- a/src/main/java/com/moon/server/extend/InsertBatchMethod.java +++ b/src/main/java/com/moon/server/extend/InsertBatchMethod.java @@ -8,21 +8,8 @@ import org.apache.ibatis.mapping.MappedStatement; import org.apache.ibatis.mapping.SqlSource; -/** - * 鎵归噺鎻掑叆鏂规硶 - * @author WWW - */ @SuppressWarnings("ALL") public class InsertBatchMethod extends AbstractMethod { - /** - * insert into user(id, name, age) values (1, "a", 17), (2, "b", 18); - * <script> - * insert into user(id, name, age) values - * <foreach collection="list" item="item" index="index" open="(" separator="),(" close=")"> - * #{item.id}, #{item.name}, #{item.age} - * </foreach> - * </script> - */ @Override public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, TableInfo tableInfo) { final String sql = "<script>insert into %s %s values %s</script>"; @@ -32,7 +19,6 @@ SqlSource sqlSource = languageDriver.createSqlSource(configuration, sqlResult, modelClass); - // 绗笁涓弬鏁板繀椤诲拰RootMapper鐨勮嚜瀹氫箟鏂规硶鍚嶄竴鑷� return this.addInsertMappedStatement(mapperClass, modelClass, "insertBatch", sqlSource, new NoKeyGenerator(), null, null); } -- Gitblit v1.9.3