@ -2545,7 +2545,7 @@ class ExportController extends Controller
$map['tp1.chain'] = '/';
}
//为数据权限添加
setPowerPromoteIds($map);
setPowerPromoteIds($map, 'u.promote_id');
$data = M('promote', 'tab_')->alias('tp1')->field('tp1.account as promote_account,tp1.id, date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time, count(u.id) as count,
count(IF(register_time ' . $today . ',1,null)) as today,
count(IF(register_time ' . $week . ',1,null)) as week,
@ -2564,7 +2564,8 @@ class ExportController extends Controller