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