浏览代码

修改Bug

yjp 1 年之前
父节点
当前提交
cb012d9b26
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      framework/core/infrastructure/database/database.go

+ 1 - 1
framework/core/infrastructure/database/database.go

@@ -390,7 +390,7 @@ func InsertBatch(executor Executor, executeParams *sql.InsertBatchExecuteParams)
 
 	values := make([]any, 0)
 	for _, tableRow := range executeParams.TableRowBatch {
-		values = append(values, tableRow.Values())
+		values = append(values, tableRow.Values()...)
 	}
 
 	_, err = executor.ExecuteRawSqlTemplate(sql.InsertTpl, executeParamsMap, values...)