...
|
...
|
@@ -188,6 +188,9 @@ func (repository *CooperationModeRepository) Find(queryOptions map[string]interf |
|
|
if orgId, ok := queryOptions["orgId"]; ok && orgId.(int64) != 0 {
|
|
|
query.Where("org->>'orgId' = '?'", orgId)
|
|
|
}
|
|
|
if status, ok := queryOptions["status"]; ok && status.(int32) > 0 {
|
|
|
query.Where("status = ?", status)
|
|
|
}
|
|
|
if orgIds, ok := queryOptions["orgIds"]; ok && len(orgIds.([]int64)) > 0 {
|
|
|
newOrgIds := utils.SliceItoa(orgIds.([]int64))
|
|
|
query.Where("org->>'orgId' in (?)", pg.In(newOrgIds))
|
...
|
...
|
|