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

37 lines
871 B
PHP
Raw 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 BalanceWages extends Command
{
protected function configure()
{
$this->setName('balance-wages')
->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/RoomWages')->statistics_room_last_week_earnings(1);
model('api/RoomWages')->statistics_guild_last_week_earnings(1);
echo '结算工资监控!'.PHP_EOL;;
}
}