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())