From 95b09aa5fe3095ccd6646a675c6a4855151da33a Mon Sep 17 00:00:00 2001 From: tiansin Date: Fri, 25 Dec 2020 16:03:01 +0800 Subject: [PATCH] feat: :bug: fix GetWhereConditionOfStruct where AND --- database/gdb/gdb_func.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/gdb/gdb_func.go b/database/gdb/gdb_func.go index e3ea7211a..78c9ac47b 100644 --- a/database/gdb/gdb_func.go +++ b/database/gdb/gdb_func.go @@ -326,7 +326,7 @@ func GetWhereConditionOfStruct(pointer interface{}) (where string, args []interf return array[0], []interface{}{field.Value()}, nil } if len(where) > 0 { - where += " " + where += " AND " } where += field.TagValue + "=?" args = append(args, field.Value())