Files
oms/back/application/command/QueryAgv.php
2026-03-10 18:45:36 +08:00

35 lines
777 B
PHP

<?php
namespace app\command;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use think\Db;
use think\Log;
use app\api\controller\Task;
class QueryAgv extends Command
{
//配置定时器的信息
protected function configure(){
$this->setName('QueryAgv')->setDescription("计划任务QueryAgv");
}
protected function execute(Input $input, Output $output){
//输出到日志
$output->writeln('Date Crontab job start...');
/*** 这里写计划任务列表集 START ***/
$this->Work();
$output->writeln("Date Crontab job end...");
}
private function Work(){
$task = new Task();
$task->QueryAgv();
echo("QUERYAGV---RUN---END\n");
}
}