新增
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?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} 条订单");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user