Pārlūkot izejas kodu

[智价云] 导出采集时间更新

tangyuanwang 12 stundas atpakaļ
vecāks
revīzija
888fd588bf

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

@@ -424,7 +424,7 @@ class ExportLowPriceGoodsJobs implements ShouldQueue
             $sheet->setCellValue('W' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
             $sheet->setCellValue('X' . $row, $item['shipment_province_name']);
             $sheet->setCellValue('Y' . $row, $item['shipment_city_name']);
-            $sheet->setCellValue('Z' . $row, date('Y-m-d H:i:s', $item['collection_time']));
+            $sheet->setCellValue('Z' . $row, !empty($item['collection_time']) ? date('Y-m-d H:i:s', $item['collection_time']) : '');
             $sheet->setCellValue('AA' . $row, date('Y-m-d H:i:s', $item['insert_time']));
             $row++;
         }

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

@@ -416,7 +416,7 @@ class ExportViolationProductJobs implements ShouldQueue
             $sheet->setCellValue('U' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
             $sheet->setCellValue('V' . $row, $item['shipment_province_name']);
             $sheet->setCellValue('W' . $row, $item['shipment_city_name']);
-            $sheet->setCellValue('X' . $row, date('Y-m-d H:i:s', $item['collection_time']));
+            $sheet->setCellValue('X' . $row, !!empty($item['collection_time']) ? date('Y-m-d H:i:s', $item['collection_time']) : '');
             $sheet->setCellValue('Y' . $row, date('Y-m-d H:i:s', $item['insert_time']));
             $row++;
         }