|
@@ -43,8 +43,8 @@ class GetTaskInfo extends Command
|
|
|
->where('sync_task_id', '<>', '')
|
|
|
->where('is_enabled', 1)
|
|
|
->when($taskIdArr, function ($query, $taskIdArr) {
|
|
|
- return $query->whereIn('task_id', $taskIdArr);
|
|
|
- })->orderBy('id', 'asc')
|
|
|
+ return $query->whereIn('sync_task_id', $taskIdArr);
|
|
|
+ })->orderBy('id')
|
|
|
->chunk(100, function ($items) {
|
|
|
$now = date('Y-m-d H:i:s');
|
|
|
foreach ($items as $item) {
|