Skip to content

Commit 4123f2c

Browse files
committed
fix(database): 修复模型with方法中的批处理参数映射问题
1 parent 8754796 commit 4123f2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/gdb/gdb_model_with.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func parseWithTagInField(field reflect.StructField) (output withTagOutput) {
433433
output.Where = data[OrmTagForWithWhere]
434434
output.Order = data[OrmTagForWithOrder]
435435
output.Unscoped = data[OrmTagForWithUnscoped]
436-
output.BatchSize = gconv.Int(data["batchSize"])
437-
output.BatchThreshold = gconv.Int(data["threshold"])
436+
output.BatchSize = gconv.Int(data[OrmTagForWithBatchSize])
437+
output.BatchThreshold = gconv.Int(data[OrmTagForWithBatchThreshold])
438438
return
439439
}

0 commit comments

Comments
 (0)