allocatr/application/admin/command/Test.php
2025-05-18 16:49:03 +08:00

43 lines
876 B
PHP

<?php
namespace app\admin\command;
use app\admin\addresmart\Address;
use app\admin\controller\orders\DispatchLogic;
use app\admin\model\Order;
use app\admin\model\OrderDispatch;
use app\admin\model\OrderReview;
use app\admin\model\Worker;
use app\admin\model\WorkerItem;
use think\Collection;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use think\Db;
use think\exception\DbException;
use think\Hook;
use think\Model;
use function Symfony\Component\Clock\now;
class Test extends Command
{
protected function configure()
{
$this->setName('test')
->setDescription('批量生成区域名称的拼音');
}
protected function execute(Input $input, Output $output)
{
$order = (new Order())->find(110);
$id = (new DispatchLogic())->getMaxScoreWorker($order);
dd($id);
}
}