物理删除
parent
c144baa60c
commit
59f0e326a0
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
namespace App\Console\Commands\Table;
|
namespace App\Console\Commands\Table;
|
||||||
|
|
||||||
|
use App\Model\AliAgentNotice;
|
||||||
|
use App\Model\AliNotice;
|
||||||
use App\Model\Config;
|
use App\Model\Config;
|
||||||
use App\Model\Customer\CustomerBill;
|
use App\Model\Customer\CustomerBill;
|
||||||
use App\Model\Customer\CustomerFreeze;
|
use App\Model\Customer\CustomerFreeze;
|
||||||
|
|
@ -63,5 +65,10 @@ class OptimizeBills extends Command
|
||||||
->forceDelete();
|
->forceDelete();
|
||||||
ShopFreeze::where('created_at', '<', $currentDate)
|
ShopFreeze::where('created_at', '<', $currentDate)
|
||||||
->forceDelete();
|
->forceDelete();
|
||||||
|
// notice
|
||||||
|
AliAgentNotice::where('created_at', '<', $currentDate)
|
||||||
|
->forceDelete();
|
||||||
|
AliNotice::where('created_at', '<', $currentDate)
|
||||||
|
->forceDelete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue