From f7737aff501d368bb238ba919d98ed108ca36a65 Mon Sep 17 00:00:00 2001 From: xing Date: Fri, 16 Sep 2022 23:13:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/model.go b/models/model.go index 77115c1..94a5926 100644 --- a/models/model.go +++ b/models/model.go @@ -111,7 +111,7 @@ func (w SqlBuilder) ParseWhere(in ...[]interface{}) (string, []interface{}) { s.WriteString(" ? and ") w.parseType(ss[start+1:end], &s, &args) if i == j-1 && fl { - st := s.String() + st = s.String() st = strings.TrimRight(st, "and ") s.Reset() s.WriteString(st)