Files
mier-php/application/common/command/StatisticsRoomLastWeekEarnings.php

32 lines
745 B
PHP
Raw Permalink Normal View History

2025-08-11 10:22:05 +08:00
<?php
namespace app\common\command;
use think\console\Command;
use think\console\Input;
use think\console\Output;
class StatisticsRoomLastWeekEarnings extends Command
{
protected function configure()
{
$this->setName('statistics-room-last-week-earnings')
->setDescription('统计上周房间流水'); //
}
/**
* 清理过期装扮
* @param Input $input
* @param Output $output
* @return int|void|null
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
protected function execute(Input $input, Output $output)
{
model('api/RoomSubsidy')->statistics_room_last_week_earnings(0);
echo '统计上周房间流水!'.PHP_EOL;
}
}