From 6ae0bf40262035e1ccc6967782b976a520dd9ac6 Mon Sep 17 00:00:00 2001 From: windha Date: Thu, 9 Sep 2021 17:13:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=20in=20=E6=9F=A5=E8=AF=A2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/view/genfunc/def.go | 4 ++-- data/view/genfunc/model/gen.base.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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, // 列名