소스 검색

[智价云] 采集时间导出补充

tangyuanwang 2 일 전
부모
커밋
de862a68ef
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 1
      app/Jobs/Manager/Other/ExportLowPriceGoodsJobs.php
  2. 3 1
      app/Jobs/Manager/Other/ExportViolationProductJobs.php

+ 3 - 1
app/Jobs/Manager/Other/ExportLowPriceGoodsJobs.php

@@ -369,6 +369,7 @@ class ExportLowPriceGoodsJobs implements ShouldQueue
         $sheet->setCellValue('X2', '记录时间');
         $sheet->setCellValue('Y2', '店铺省');
         $sheet->setCellValue('Z2', '店铺市');
+        $sheet->setCellValue('AA2', '采集时间');
 
         //平台0=全部,1=淘宝,2=京东,3=拼多多,4=美团,5=药师帮,6=1药城,7=药九九,8=药易购,9=药帮忙,10=熊猫药药11=药房网
         $platform_data = [
@@ -424,9 +425,10 @@ class ExportLowPriceGoodsJobs implements ShouldQueue
             $sheet->setCellValue('X' . $row, date('Y-m-d H:i:s', $item['insert_time']));
             $sheet->setCellValue('Y' . $row, $item['shipment_province_name']);
             $sheet->setCellValue('Z' . $row, $item['shipment_city_name']);
+            $sheet->setCellValue('AA' . $row, date('Y-m-d H:i:s', $item['collection_time']));
             $row++;
         }
-        foreach (range('A', 'Z') as $column) {
+        foreach (range('A', 'AA') as $column) {
             $sheet->getColumnDimension($column)->setAutoSize(true);
         }
         // 创建Excel文件

+ 3 - 1
app/Jobs/Manager/Other/ExportViolationProductJobs.php

@@ -363,6 +363,7 @@ class ExportViolationProductJobs implements ShouldQueue
         $sheet->setCellValue('V2', '记录时间');
         $sheet->setCellValue('W2', '店铺省');
         $sheet->setCellValue('X2', '店铺市');
+        $sheet->setCellValue('Y2', '采集时间');
 
         //平台0=全部,1=淘宝,2=京东,3=拼多多,4=美团,5=药师帮,6=1药城,7=药九九,8=药易购,9=药帮忙,10=熊猫药药11=药房网
         $platform_data = [
@@ -416,9 +417,10 @@ class ExportViolationProductJobs implements ShouldQueue
             $sheet->setCellValue('V' . $row, date('Y-m-d H:i:s', $item['insert_time']));
             $sheet->setCellValue('W' . $row, $item['shipment_province_name']);
             $sheet->setCellValue('X' . $row, $item['shipment_city_name']);
+            $sheet->setCellValue('Y' . $row, date('Y-m-d H:i:s', $item['collection_time']));
             $row++;
         }
-        foreach (range('A', 'X') as $column) {
+        foreach (range('A', 'Y') as $column) {
             $sheet->getColumnDimension($column)->setAutoSize(true);
         }
         // 创建Excel文件