Fix orm query setter issue (#11177)

For the Andlist, the query setter should ignore it

Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
Wang Yan 2020-03-23 16:05:20 +08:00 committed by GitHub
parent 1762bfae69
commit 15d2a93aa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ func QuerySetter(ctx context.Context, model interface{}, query *q.Query, ignored
}
// and list
_, ok = v.(*q.OrList)
_, ok = v.(*q.AndList)
if ok {
// do nothing as and list needs to be handled by the logic of DAO
continue