...
|
...
|
@@ -124,9 +124,11 @@ func getBulletinReceiverIds(orm orm2.Ormer, receivers []protocol.VisibleObject, |
|
|
}
|
|
|
}
|
|
|
var userCompanyIds []int64
|
|
|
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...)
|
|
|
log.Debug("sendBulletinUserMsg: department_id:%v receiver_ids:%v", did, userCompanyIds)
|
...
|
...
|
|