27 lines
730 B
PHP
Executable File
27 lines
730 B
PHP
Executable File
<?php
|
||
|
||
declare(strict_types=1);
|
||
|
||
namespace app\common\command;
|
||
|
||
use think\console\Input;
|
||
use think\console\Output;
|
||
|
||
/**
|
||
* 定时:补全订单 creator_id(逻辑在 SyncWechatWorkBills::fillOrderCreatorsFromPayee)
|
||
*/
|
||
class FillOrderCreatorFromPayee extends SyncWechatWorkBills
|
||
{
|
||
protected function configure()
|
||
{
|
||
$this->setName('fill_order_creator_from_payee')
|
||
->setDescription('补全订单创建人:creator_id 为空时按 payee_userid 匹配 zyt_admin.work_wechat_userid');
|
||
}
|
||
|
||
protected function execute(Input $input, Output $output)
|
||
{
|
||
$fixed = $this->fillOrderCreatorsFromPayee();
|
||
$output->writeln("补全创建人完成,共更新 {$fixed} 条订单");
|
||
}
|
||
}
|