Browse Source

修改Bug

yjp 1 năm trước cách đây
mục cha
commit
cb012d9b26
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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...)