...
|
...
|
@@ -995,7 +995,7 @@ func (repository *CooperationContractRepository) Find(queryOptions map[string]in |
|
|
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))
|
|
|
}
|
|
|
if incentivesType, ok := queryOptions["incentivesType"]; ok && incentivesType.(int32) != 0 {
|
...
|
...
|
|