zengjun 4 роки тому
батько
коміт
cecd773a04
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      app/Services/ReceivingTaskService.php

+ 2 - 2
app/Services/ReceivingTaskService.php

@@ -123,10 +123,10 @@ class ReceivingTaskService
      */
     public function overtimeToCompleteTask()
     {
-        $yesterday = Carbon::now()->subDays(1)->format("Y-m-d");
+        $yesterday = Carbon::now()->subDays(1)->format("Ym--d");
         ReceivingTask::query()
             ->where('created_at', '>=', $yesterday . ' 00:00:00')
-            ->where('created_at', '<=', $yesterday . ' 23.59.59')
+            ->where('created_at', '<=', $yesterday . ' 23:59:59')
             ->whereIn('status', ['创建', '进行中'])
             ->update(['status' => '超时完成']);