import( (string) $this->argument('file'), max(1, (int) $this->option('company')), (bool) $this->option('replace'), ); } catch (Throwable $e) { $this->components->error($e->getMessage()); return self::FAILURE; } $this->components->info( "导入完成:新增 {$result['inserted']} 条,更新 {$result['updated']} 条,替换旧数据 {$result['replaced']} 条,跳过 {$result['skipped']} 条。" ); return self::SUCCESS; } }