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