Commit ea69b745 by 杨树贤

完善数据

parent 0447cbcf
Showing with 3 additions and 14 deletions
...@@ -70,22 +70,11 @@ class SyncSupplierToErp extends Command ...@@ -70,22 +70,11 @@ class SyncSupplierToErp extends Command
echo "[{$count}/{$total}] ID:{$supplierId} {$supplier->supplier_name} ... "; echo "[{$count}/{$total}] ID:{$supplierId} {$supplier->supplier_name} ... ";
try { $result = $syncService->syncSupplierToErp($supplierId);
$result = $syncService->syncSupplierToErp($supplierId); $success++;
if ($result) { echo "成功\n";
$success++;
echo "成功\n";
} else {
$failed++;
echo "失败\n";
}
} catch (\Exception $e) {
$failed++;
echo "异常: " . $e->getMessage() . "\n";
}
} }
$this->info('');
$this->info('========================================'); $this->info('========================================');
$this->info('处理完成'); $this->info('处理完成');
$this->info('总计: ' . $total); $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