Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ba86941a
authored
Oct 17, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
账号判断问题
parent
07f7612e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
app/Http/Validators/SupplierAccountValidator.php
app/Http/Validators/SupplierAccountValidator.php
View file @
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
'该供应商已经存在账号'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment