...
|
...
|
@@ -124,8 +124,10 @@ func getBulletinReceiverIds(orm orm2.Ormer, receivers []protocol.VisibleObject, |
|
|
}
|
|
|
}
|
|
|
var userCompanyIds []int64
|
|
|
if err = utils.ExecuteQueryAllWithOrmer(orm, &userCompanyIds, fmt.Sprintf(sql1, strings.Join(did, ",")), companyId, companyId); err != nil && err != orm2.ErrNoRows {
|
|
|
return
|
|
|
if len(did) > 0 {
|
|
|
if err = utils.ExecuteQueryAllWithOrmer(orm, &userCompanyIds, fmt.Sprintf(sql1, strings.Join(did, ",")), companyId, companyId); err != nil && err != orm2.ErrNoRows {
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
if len(userCompanyIds) > 0 {
|
|
|
ids = append(ids, userCompanyIds...)
|
...
|
...
|
|