|
@@ -23,8 +23,8 @@ class ExportFileService extends Service
|
|
|
];
|
|
|
|
|
|
public function exportAll($data,$user){
|
|
|
- if(empty($data['e_menu_id'])) return [false, '菜单ID不能为空'];
|
|
|
- list($function, $name) = EmployeeService::fillMenu2($data['e_menu_id'], $user);
|
|
|
+ if(empty($data['menu_id'])) return [false, '菜单ID不能为空'];
|
|
|
+ list($function, $name) = EmployeeService::fillMenu2($data['menu_id'], $user);
|
|
|
if (empty($function) || ! method_exists(self::class, $function)) return [false, "导出方法不存在,请联系开发"];
|
|
|
self::$filename = $name;
|
|
|
|
|
@@ -40,6 +40,7 @@ class ExportFileService extends Service
|
|
|
if(empty($search['page_index'])) return [false,'请选择导出数据的开始页码'];
|
|
|
if(empty($search['page_size'])) return [false,'请选择导出数据的条数'];
|
|
|
if($search['page_size'] > 5000) return [false,'请选择导出数据的条数每次最多5000条'];
|
|
|
+ $data['order_search']['menu_id'] = $data['menu_id'];
|
|
|
list($status,$id) = $this->$search_func($data, $user);
|
|
|
if(! $status) return [false, $id];
|
|
|
$data['id'] = $id;
|