Commit b3f76148 by mushishixian

云芯采购

parent b283b7ef
...@@ -29,6 +29,12 @@ class SupplierAccountValidator ...@@ -29,6 +29,12 @@ class SupplierAccountValidator
} }
if (empty($account['id'])) { if (empty($account['id'])) {
$supplierModel = new SupplierChannelModel();
$yunxinChannelUid = $supplierModel->where('supplier_code',
$account['supplier_code'])->value('yunxin_channel_uid');
if (empty($yunxinChannelUid)) {
return '该供应商没有绑定云芯采购,请完善相关信息';
}
$model = new SupplierAccountModel(); $model = new SupplierAccountModel();
$supplierCount = $model->where('supplier_code', $account['supplier_code']) $supplierCount = $model->where('supplier_code', $account['supplier_code'])
->count(); ->count();
......
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