|
|
@@ -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 . '%'];
|