diff --git a/g_appcode.go b/g_appcode.go index 4e90107..6bd915f 100644 --- a/g_appcode.go +++ b/g_appcode.go @@ -1062,7 +1062,15 @@ func GetAll{{modelName}}(query map[string]string, fields []string, sortby []stri for k, v := range query { // rewrite dot-notation to Object__Attribute k = strings.Replace(k, ".", "__", -1) - qs = qs.Filter(k, v) + if strings.Contains(k, "isnull") { + var v2 bool + if v == "true" || v == "1" { + v2 = true + } + qs = qs.Filter(k, v2) + } else { + qs = qs.Filter(k, v) + } } // order by: var sortFields []string