feat: #10000 增加删除日志命令

This commit is contained in:
赵世界 2022-08-30 23:46:56 +08:00
parent 0d2060a635
commit 48e83b32f3

View File

@ -53,6 +53,11 @@ class DeleteKttQuery extends Command
->delete(); ->delete();
$this->info('删除增量查订单: ' . $count); $this->info('删除增量查订单: ' . $count);
$count = Log::where('target_field', 'pdd.ktt.goods.incr.quantity')
->where('created_at', '<', date('Y-m-d H:i:s', strtotime('-2 day')))
->delete();
$this->info('删除快团团更新库存: ' . $count);
$count = Log::where('target_field', '更新库存') $count = Log::where('target_field', '更新库存')
->where('created_at', '<', date('Y-m-d H:i:s', strtotime('-2 day'))) ->where('created_at', '<', date('Y-m-d H:i:s', strtotime('-2 day')))
->delete(); ->delete();