|
|
@ -1337,11 +1337,17 @@ class MarketPercentageController extends ThinkController
|
|
|
|
|
|
|
|
|
|
|
|
$map = ['_string' => '1=1'];
|
|
|
|
$map = ['_string' => '1=1'];
|
|
|
|
$groupIds = $this->MarketEvent->getMarketGroupId();
|
|
|
|
$groupIds = $this->MarketEvent->getMarketGroupId();
|
|
|
|
|
|
|
|
$conditions = [];
|
|
|
|
|
|
|
|
if (empty($groupIds)) {
|
|
|
|
|
|
|
|
$conditions['_string'] = '1=0';
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$conditions['group_id'] = ['in', $groupIds];
|
|
|
|
|
|
|
|
}
|
|
|
|
$admin_data = M("member")
|
|
|
|
$admin_data = M("member")
|
|
|
|
->field("access.uid admin_id")
|
|
|
|
->field("access.uid admin_id")
|
|
|
|
->join("left join sys_auth_group_access access on sys_member.uid = access.uid")
|
|
|
|
->join("left join sys_auth_group_access access on sys_member.uid = access.uid")
|
|
|
|
->join("left join sys_auth_group auth on access.group_id=auth.id")
|
|
|
|
->join("left join sys_auth_group auth on access.group_id=auth.id")
|
|
|
|
->where(['group_id' => ['in', $groupIds]])
|
|
|
|
->where($conditions)
|
|
|
|
->select();
|
|
|
|
->select();
|
|
|
|
if ($admin_data) {
|
|
|
|
if ($admin_data) {
|
|
|
|
$map['tab_market_altogether.admin_id'] = ['in', array_column($admin_data, 'admin_id')];
|
|
|
|
$map['tab_market_altogether.admin_id'] = ['in', array_column($admin_data, 'admin_id')];
|
|
|
|