Commit ea69b745 by 杨树贤

完善数据

parent 0447cbcf
Showing with 3 additions and 14 deletions
......@@ -70,22 +70,11 @@ class SyncSupplierToErp extends Command
echo "[{$count}/{$total}] ID:{$supplierId} {$supplier->supplier_name} ... ";
try {
$result = $syncService->syncSupplierToErp($supplierId);
if ($result) {
$success++;
echo "成功\n";
} else {
$failed++;
echo "失败\n";
}
} catch (\Exception $e) {
$failed++;
echo "异常: " . $e->getMessage() . "\n";
}
$result = $syncService->syncSupplierToErp($supplierId);
$success++;
echo "成功\n";
}
$this->info('');
$this->info('========================================');
$this->info('处理完成');
$this->info('总计: ' . $total);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment