|
|
@@ -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' => '超时完成']);
|
|
|
|