Explorar o código

更新 'framework/core/infrastructure/database/clause/condition.go'

修改bug
尹嘉鹏 hai 1 mes
pai
achega
e113c7fb52
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      framework/core/infrastructure/database/clause/condition.go

+ 1 - 1
framework/core/infrastructure/database/clause/condition.go

@@ -17,7 +17,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
 }