feat: 🐛 fix GetWhereConditionOfStruct where AND

This commit is contained in:
tiansin
2020-12-25 16:03:01 +08:00
parent 4e79b90863
commit 95b09aa5fe

View File

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