|
@@ -231,7 +231,7 @@ func (repository *UserRepository) Find(queryOptions map[string]interface{}) (int |
|
@@ -231,7 +231,7 @@ func (repository *UserRepository) Find(queryOptions map[string]interface{}) (int |
231
|
if v, ok := queryOptions["cooperationCompany"]; ok && len(v.(string)) > 0 {
|
231
|
if v, ok := queryOptions["cooperationCompany"]; ok && len(v.(string)) > 0 {
|
232
|
query.Where(fmt.Sprintf(`cooperation_info->>'cooperationCompany' like '%%%v%%'`, v))
|
232
|
query.Where(fmt.Sprintf(`cooperation_info->>'cooperationCompany' like '%%%v%%'`, v))
|
233
|
}
|
233
|
}
|
234
|
- query.SetOffsetAndLimit(20)
|
234
|
+ query.SetOffsetAndLimit(domain.MaxQueryRow)
|
235
|
query.SetOrderDirect("user_id", "DESC")
|
235
|
query.SetOrderDirect("user_id", "DESC")
|
236
|
if count, err := query.SelectAndCount(); err != nil {
|
236
|
if count, err := query.SelectAndCount(); err != nil {
|
237
|
return 0, users, err
|
237
|
return 0, users, err
|