Commit 5ab52032 by 杨树贤

拉黑待提审逻辑

parent 25534aec
Showing with 2 additions and 1 deletions
......@@ -268,7 +268,8 @@ class SyncSupplierService
SupplierChannelModel::where('supplier_id', $supplierId)->update([
'is_entity' => $isEntityResult,
'update_time' => time(),
'status' => $isEntity ? SupplierChannelModel::STATUS_DISABLE : $preStatus,
//这里的逻辑是,因为取消实体名单以后,如果之前的状态是黑名单的话,直接变成待提审
'status' => $isEntity ? SupplierChannelModel::STATUS_DISABLE : $preStatus == SupplierChannelModel::STATUS_BLOCK ? SupplierChannelModel::STATUS_PENDING : $preStatus,
'disable_reason' => $reason,
]);
$isYunxinSupplier = false;
......
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