...
|
...
|
@@ -190,7 +190,7 @@ func (repository *CooperationModeRepository) Find(queryOptions map[string]interf |
|
|
if orgId, ok := queryOptions["orgId"]; ok && orgId.(int64) != 0 {
|
|
|
query.Where("org->>'orgId' = '?'", orgId)
|
|
|
}
|
|
|
if orgIds, ok := queryOptions["orgIds"]; ok && len(orgIds.([]int64)) > 0 {
|
|
|
if orgIds, ok := queryOptions["orgIds"]; ok && len(orgIds.([]string)) > 0 {
|
|
|
query.Where("org->>'orgId' in (?)", pg.In(orgIds))
|
|
|
}
|
|
|
offsetLimitFlag := true
|
...
|
...
|
|