fly 4 سال پیش
والد
کامیت
c6d5d80be6
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 0 1
      src/Jobs/ExportTaskJob.php
  2. 2 1
      src/Services/Export/AbstractExportTask.php

+ 0 - 1
src/Jobs/ExportTaskJob.php

@@ -43,7 +43,6 @@ class ExportTaskJob implements ShouldQueue
         $file_name = md5($task_model->id . strtotime($task_model->created_at)) . ".csv";
         $local_path = storage_path('tmp');
         ExcelHelper::saveFileCsv($headers, $data, $file_name, $local_path);
-        dd(1);
         $oss_service = new AliOSSHelper;
         $oss_path = $oss_service->uploadFile("reports", $local_path);
         unlink($local_path . '/' . $file_name);

+ 2 - 1
src/Services/Export/AbstractExportTask.php

@@ -27,7 +27,8 @@ abstract class AbstractExportTask
     {
         $params = array_merge($this->getTaskData(), [
             'name' => $this->query_data->memu_name,
-            'query_condition' => $this->query_data->getQueryParamsContent($query_params)
+            'query_condition' => $this->query_data->getQueryParamsContent($query_params),
+            'status' => 1,
         ]);
         $this->setModel($this->model::create($params));
     }