igengx
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user