diff --git a/app/Http/Controllers/Business/SystemizationTodos.php b/app/Http/Controllers/Business/SystemizationTodos.php index baa6e38c..45a54d5b 100644 --- a/app/Http/Controllers/Business/SystemizationTodos.php +++ b/app/Http/Controllers/Business/SystemizationTodos.php @@ -131,12 +131,6 @@ class SystemizationTodos extends Controller ->whereDate('due_date', '<', today()) ->count(); $statusOptions = collect(); - if ($overdueCount > 0) { - $statusOptions->push([ - 'value' => self::OVERDUE_FILTER, - 'label' => '已逾期', - ]); - } foreach (SystemizationTodo::STATUSES as $status) { $statusOptions->push([ 'value' => $status, diff --git a/tests/Feature/Business/SystemizationTodosTest.php b/tests/Feature/Business/SystemizationTodosTest.php index 4ccec05a..39341756 100644 --- a/tests/Feature/Business/SystemizationTodosTest.php +++ b/tests/Feature/Business/SystemizationTodosTest.php @@ -535,7 +535,7 @@ class SystemizationTodosTest extends FeatureTestCase $this->assertContains('平台收入核对', $pageContent['todoContentOptions']['收入']); $this->assertArrayNotHasKey('1、收入', $pageContent['todoContentOptions']); $this->assertSame( - ['__overdue__', SystemizationTodo::STATUS_INCOMPLETE, SystemizationTodo::STATUS_COMPLETED], + [SystemizationTodo::STATUS_INCOMPLETE, SystemizationTodo::STATUS_COMPLETED], array_column($pageContent['todoStatusOptions']->all(), 'value'), ); $pageItems = $pageContent['items'];