Jelajahi Sumber

更新 'framework/core/infrastructure/database/sql/conditions.go'

修改bug
尹嘉鹏 1 bulan lalu
induk
melakukan
abbdf4f829
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      framework/core/infrastructure/database/sql/conditions.go

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

@@ -25,7 +25,7 @@ func NewConditions() *Conditions {
 // - 数据库条件
 func (conditions *Conditions) AddCondition(query string, args ...any) *Conditions {
 	conditions.queries = append(conditions.queries, query)
-	conditions.args = append(conditions.args, args)
+	conditions.args = append(conditions.args, args...)
 	return conditions
 }