execute($sql); $this->execute("INSERT INTO `qimall_crontab_task` ( `name`, `command`, `type`, `rule`, `is_warning`, `status`, `created_at`, `updated_at`) VALUES ('云库存-平级奖结算', 'cloud-stock/index/settlement-equal-reward', 2, '0 0 1 * * *', 0, 1, 1735121957, 1735121957)"); $mall_list = Mall::getEnableMallList(true); foreach ($mall_list as $mall) { (new EqualAwardService(['mall_id' => $mall['id']]))->fixOrderNo('commission'); (new EqualAwardService(['mall_id' => $mall['id']]))->fixOrderNo('commission_frozen'); (new CloudStockStatisticService(['mall_id' => $mall['id']]))->fix('commission'); (new CloudStockStatisticService(['mall_id' => $mall['id']]))->fix('commission_frozen'); (new AgentService(['mall_id' => $mall['id']]))->fix('commission'); (new AgentService(['mall_id' => $mall['id']]))->fix('commission_frozen'); } } /** * {@inheritdoc} */ public function safeDown() { echo "M241203101341Huolihuoban2 cannot be reverted.\n"; return false; } /* // Use up()/down() to run migration code without a transaction. public function up() { } public function down() { echo "M241203101341Huolihuoban2 cannot be reverted.\n"; return false; } */ }