Commit f9ae599e by 杨树贤

修复同步问题

parent 5c4a79ef
......@@ -76,7 +76,7 @@ class SupplierAuditService
}
$needReview = SupplierChannelModel::where('supplier_id', $supplierId)->value('need_review');
//复审通过状态的供应商才会同步到金蝶
if ($needReview == 0) {
if ($status == SupplierChannelModel::STATUS_PASSED) {
//发送队列消息同步到金蝶
$service = new SyncSupplierService();
$service->syncSupplierToErp($supplierId);
......
......@@ -167,6 +167,7 @@ class SyncSupplierService
//同步供应商信息到一体化中心
public function syncSupplierToUnited($supplierId)
{
Log::error('同步供应商给一体化 : '. $supplierId);
$supplier = SupplierChannelModel::where('supplier_id', $supplierId)->first()->toArray();
$fileUrl = SupplierAttachmentsModel::where('supplier_id', $supplierId)
->where('field_name', 'registration_certificate')
......
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