...
|
...
|
@@ -217,6 +217,9 @@ func (repository *UserRepository) Find(queryOptions map[string]interface{}) (int |
|
|
if v, ok := queryOptions["cooperationCompany"]; ok && len(v.(string)) > 0 {
|
|
|
query.Where(fmt.Sprintf(`cooperation_info->>'cooperationCompany' like '%%%v%%'`, v))
|
|
|
}
|
|
|
if v, ok := queryOptions["advancedQuery"]; ok && len(v.(string)) > 0 {
|
|
|
query.Where(v.(string))
|
|
|
}
|
|
|
query.SetOffsetAndLimit(20)
|
|
|
query.SetOrderDirect("user_id", "DESC")
|
|
|
if count, err := query.SelectAndCount(); err != nil {
|
...
|
...
|
|