소스 검색

修改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...)