Browse Source

修改Bug

yjp 1 year ago
parent
commit
cb012d9b26
1 changed files with 1 additions and 1 deletions
  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...)