物理删除
parent
c144baa60c
commit
59f0e326a0
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue