Commit d06dad86 by 杨树贤

Merge branch 'ysx-芯链账号日志操作-20250928' into Dev

parents f2c8e265 ba86941a
......@@ -43,6 +43,7 @@ class SupplierAccountValidator
//return '该供应商没有绑定SKU采购,请完善相关信息';
}
$supplierCount = $model->where('supplier_code', $account['supplier_code'])
->where('parent_id',0)
->count();
if ($supplierCount > 0) {
return '该供应商已经存在账号';
......@@ -55,6 +56,7 @@ class SupplierAccountValidator
} else {
$supplierCount = $model->where('id', '!=', $account['id'])
->where('supplier_code', $account['supplier_code'])
->where('parent_id',0)
->count();
if ($supplierCount > 0) {
return '该供应商已经存在账号';
......
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