diff --git a/data/view/genfunc/def.go b/data/view/genfunc/def.go index 8bc7d41..c4c323d 100755 --- a/data/view/genfunc/def.go +++ b/data/view/genfunc/def.go @@ -117,7 +117,7 @@ type Condition struct { } // And a condition by and .and 一个条件 -func (c *Condition) And(column string, cases string, value ...interface{}) { +func (c *Condition) And(column string, cases string, value interface{}) { c.list = append(c.list, &conditionInfo{ andor: "and", column: column, // 列名 @@ -127,7 +127,7 @@ func (c *Condition) And(column string, cases string, value ...interface{}) { } // Or a condition by or .or 一个条件 -func (c *Condition) Or(column string, cases string, value ...interface{}) { +func (c *Condition) Or(column string, cases string, value interface{}) { c.list = append(c.list, &conditionInfo{ andor: "or", column: column, // 列名 diff --git a/data/view/genfunc/model/gen.base.go b/data/view/genfunc/model/gen.base.go index 8205c9e..ce3dde4 100644 --- a/data/view/genfunc/model/gen.base.go +++ b/data/view/genfunc/model/gen.base.go @@ -98,7 +98,7 @@ type Condition struct { } // And a condition by and .and 一个条件 -func (c *Condition) And(column string, cases string, value ...interface{}) { +func (c *Condition) And(column string, cases string, value interface{}) { c.list = append(c.list, &conditionInfo{ andor: "and", column: column, // 列名 @@ -108,7 +108,7 @@ func (c *Condition) And(column string, cases string, value ...interface{}) { } // Or a condition by or .or 一个条件 -func (c *Condition) Or(column string, cases string, value ...interface{}) { +func (c *Condition) Or(column string, cases string, value interface{}) { c.list = append(c.list, &conditionInfo{ andor: "or", column: column, // 列名