...
|
...
|
@@ -231,7 +231,7 @@ 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))
|
|
|
}
|
|
|
query.SetOffsetAndLimit(20)
|
|
|
query.SetOffsetAndLimit(domain.MaxQueryRow)
|
|
|
query.SetOrderDirect("user_id", "DESC")
|
|
|
if count, err := query.SelectAndCount(); err != nil {
|
|
|
return 0, users, err
|
...
|
...
|
|