Files
zyt/server/app/common/command/FillOrderCreatorFromPayee.php
2026-04-07 18:13:03 +08:00

27 lines
730 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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} 条订单");
}
}