Commit 8024c113 by 杨树贤

添加黑名单逻辑

parent d1a3e94a
......@@ -70,6 +70,18 @@ class SupplierSyncController extends BaseSyncController
$this->syncResponse(-1, $error);
}
//这里还要去判断是是拉黑
if (true) {
$data['status'] = SupplierChannelModel::STATUS_BLOCK;
$data['block_reason'] = '一体化系统黑名单供应商';
$data['update_time'] = time();
$result = SupplierChannelModel::where('supplier_name', $resultData['company_name'])
->update($data);
if ($result) {
$this->syncResponse(0, '获取审核结果广播成功');
}
}
(new SyncSupplierService())->receiveEntityResult($resultData['company_name'], $resultData['result']);
$this->syncResponse(0, '获取审核结果广播成功');
......@@ -94,7 +106,7 @@ class SupplierSyncController extends BaseSyncController
$model = new SupplierChannelModel();
$query = $model->orderBy('update_time', 'desc');
$filter = new SupplierFilter();
$params = $request->except('user','perms');
$params = $request->except('user', 'perms');
$params['need_audit'] = 1;
$params['source_type'] = 'all';
$query = $filter->listFilter($params, $query);
......
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