Commit 67f3e5ce by 杨树贤

共用申请状态问题

parent 35457e10
...@@ -5,3 +5,4 @@ Homestead.json ...@@ -5,3 +5,4 @@ Homestead.json
/.idea /.idea
/.vscode /.vscode
/.history /.history
/vendor/_laravel_idea
\ No newline at end of file
...@@ -32,7 +32,8 @@ class SupplierShareApplyApiController extends Controller ...@@ -32,7 +32,8 @@ class SupplierShareApplyApiController extends Controller
$this->response(-1, '供应商名称不能为空'); $this->response(-1, '供应商名称不能为空');
} }
$supplierModel = new SupplierChannelModel(); $supplierModel = new SupplierChannelModel();
$supplier = $supplierModel->where('supplier_name', $supplierName)->first(); $supplier = $supplierModel->where('supplier_name', $supplierName)->where('status',
SupplierChannelModel::STATUS_PASSED)->first();
if (empty($supplier)) { if (empty($supplier)) {
$this->response(-1, '该供应商名称不存在,请输入正确供应商名称'); $this->response(-1, '该供应商名称不存在,请输入正确供应商名称');
} }
......
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