diff --git a/app/Console/Commands/Table/OptimizeBills.php b/app/Console/Commands/Table/OptimizeBills.php index c4df3024..96ff6a28 100644 --- a/app/Console/Commands/Table/OptimizeBills.php +++ b/app/Console/Commands/Table/OptimizeBills.php @@ -2,6 +2,8 @@ namespace App\Console\Commands\Table; +use App\Model\AliAgentNotice; +use App\Model\AliNotice; use App\Model\Config; use App\Model\Customer\CustomerBill; use App\Model\Customer\CustomerFreeze; @@ -63,5 +65,10 @@ class OptimizeBills extends Command ->forceDelete(); ShopFreeze::where('created_at', '<', $currentDate) ->forceDelete(); + // notice + AliAgentNotice::where('created_at', '<', $currentDate) + ->forceDelete(); + AliNotice::where('created_at', '<', $currentDate) + ->forceDelete(); } }