浏览代码

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

修改Bug
尹嘉鹏 1 月之前
父节点
当前提交
6224158544
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 }