Преглед изворни кода

[智价云] 队列查询更新

tangyuanwang пре 8 часа
родитељ
комит
7a3eacf155

+ 2 - 0
app/Jobs/Manager/Process/LowPriceGoodsDataJobs.php

@@ -95,6 +95,8 @@ class LowPriceGoodsDataJobs implements ShouldQueue
         }
         $last7DaysStart = Carbon::today()->subDays(6)->startOfDay()->getTimestamp(); // 7天前开始
         $last7DaysEnd = Carbon::today()->endOfDay()->getTimestamp(); // 到今天结束
+        $last7DaysStart = date('Y-m-d H:i:s', $last7DaysStart);
+        $last7DaysEnd = date('Y-m-d H:i:s', $last7DaysEnd);
         $where[] = ['insert_time', '>=', $last7DaysStart];
         $where[] = ['insert_time', '<=', $last7DaysEnd];
         $where[] = ['product_name', 'like', '%' . $product_name . '%'];

+ 2 - 0
app/Jobs/Manager/Process/ViolationProductDataJobs.php

@@ -94,6 +94,8 @@ class ViolationProductDataJobs implements ShouldQueue
         }
         $last7DaysStart = Carbon::today()->subDays(6)->startOfDay()->getTimestamp(); // 7天前开始
         $last7DaysEnd = Carbon::today()->endOfDay()->getTimestamp(); // 到今天结束
+        $last7DaysStart = date('Y-m-d H:i:s', $last7DaysStart);
+        $last7DaysEnd = date('Y-m-d H:i:s', $last7DaysEnd);
         $where[] = ['insert_time', '>=', $last7DaysStart];
         $where[] = ['insert_time', '<=', $last7DaysEnd];
         $where[] = ['product_name', 'like', '%' . $product_name . '%'];

+ 2 - 0
app/Jobs/Manager/Process/ViolationStoreDataJobs.php

@@ -85,6 +85,8 @@ class ViolationStoreDataJobs implements ShouldQueue
 
         $last7DaysStart = Carbon::today()->subDays(6)->startOfDay()->getTimestamp(); // 7天前开始
         $last7DaysEnd = Carbon::today()->endOfDay()->getTimestamp(); // 到今天结束
+        $last7DaysStart = date('Y-m-d H:i:s', $last7DaysStart);
+        $last7DaysEnd = date('Y-m-d H:i:s', $last7DaysEnd);
         $where_map[] = ['insert_time', '>=', $last7DaysStart];
         $where_map[] = ['insert_time', '<=', $last7DaysEnd];
         if ($platform != '0') {