初始化代码
This commit is contained in:
37
application/common/command/BalanceWages.php
Normal file
37
application/common/command/BalanceWages.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?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;;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user