...
|
...
|
@@ -331,6 +331,9 @@ func (repository *DividendsEstimateRepository) Find(queryOptions map[string]inte |
|
|
if dividendsUserId, ok := queryOptions["dividendsUserId"]; ok && dividendsUserId.(int64) != 0 {
|
|
|
query.Where(`dividends_user @> '{"userId":"?"}'`, dividendsUserId)
|
|
|
}
|
|
|
if userBaseId, ok := queryOptions["userBaseId"]; ok && userBaseId.(int64) != 0 {
|
|
|
query.Where(`dividends_user @> '{"userBaseId":"?"}'`, userBaseId)
|
|
|
}
|
|
|
if companyId, ok := queryOptions["companyId"]; ok && companyId.(int64) != 0 {
|
|
|
query.Where("company->>'companyId' = '?'", companyId)
|
|
|
}
|
...
|
...
|
|