diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index 4d7d08be7..ef08f7fd0 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -5326,7 +5326,8 @@ if ($key == 'model'){ if(isset($_REQUEST['status'])){ $map['status']=$_REQUEST['status']; } - + //为数据权限添加 + setPowerPromoteIds($map); } else { $xlsCell = array( @@ -5386,7 +5387,8 @@ if ($key == 'model'){ if (I('status')) { $map['tab_promote.status'] = I('status'); } - + //为数据权限添加 + setPowerPromoteIds($map, 'tab_promote.id'); } @@ -5400,8 +5402,7 @@ if ($key == 'model'){ - //为数据权限添加 - setPowerPromoteIds($map, 'id'); + $xlsData = []; // if(is_array($data)){ @@ -6336,7 +6337,7 @@ if ($key == 'model'){ unset($map['promote_id']); //为数据权限添加 - setPowerPromoteIds($map); + setPowerPromoteIds($map, 'tab_spend.promote_id'); $csvFileName = $xlsName . '.csv'; //设置好告诉浏览器要下载excel文件的headers