|
|
|
@ -1668,11 +1668,11 @@ function getPowerPromoteIds()
|
|
|
|
|
if (in_array($userAuth['data_empower_type'], [2, 3])) {
|
|
|
|
|
$promoteIds = '';
|
|
|
|
|
//自己创建的会长
|
|
|
|
|
$myPromote_ids = M('promote', 'tab_')
|
|
|
|
|
->field('GROUP_CONCAT(id) as promote_ids')
|
|
|
|
|
$promotes = M('promote', 'tab_')
|
|
|
|
|
->field('id')
|
|
|
|
|
->where(['admin_id' => $userAuth['uid']])
|
|
|
|
|
->find();
|
|
|
|
|
$myPromote_ids = $myPromote_ids['promote_ids'];
|
|
|
|
|
->select();
|
|
|
|
|
$myPromote_ids = implode(',', array_column($promotes, 'id'));
|
|
|
|
|
|
|
|
|
|
if ($myPromote_ids) {
|
|
|
|
|
if ($userAuth['data_empower_type'] == 2) {//部分会长加上自己创建的会长
|
|
|
|
@ -1690,11 +1690,11 @@ function getPowerPromoteIds()
|
|
|
|
|
$where['id'] = array('in', $userAuth['data_president']);//会长本身
|
|
|
|
|
$where['_logic'] = 'or';
|
|
|
|
|
$map['_complex'] = $where;
|
|
|
|
|
$sqlResult = M('promote', 'tab_')
|
|
|
|
|
->field('GROUP_CONCAT(id) as promote_ids')
|
|
|
|
|
$promotes = M('promote', 'tab_')
|
|
|
|
|
->field('id')
|
|
|
|
|
->where($map)
|
|
|
|
|
->find();
|
|
|
|
|
$promoteIds = $sqlResult['promote_ids'];
|
|
|
|
|
->select();
|
|
|
|
|
$promoteIds = implode(',', array_column($promotes, 'id'));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|