24 lines
596 B
PHP
24 lines
596 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace app\command;
|
|
|
|
use app\adminapi\service\DesktopSessionService;
|
|
use think\console\Command;
|
|
use think\console\Input;
|
|
use think\console\Output;
|
|
|
|
final class DesktopSessionSettle extends Command
|
|
{
|
|
protected function configure()
|
|
{
|
|
$this->setName('desktop-session:settle')->setDescription('结算已到期的医生工作站登录记录');
|
|
}
|
|
|
|
protected function execute(Input $input, Output $output): int
|
|
{
|
|
$output->writeln('已结算工作站会话 ' . DesktopSessionService::settleDue() . ' 条');
|
|
return 0;
|
|
}
|
|
}
|