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
63c5d205
authored
Mar 15, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
供应商申请共用判断
parent
67f3e5ce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
app/Http/Controllers/Api/SupplierShareApplyApiController.php
app/Http/Controllers/Api/SupplierShareApplyApiController.php
View file @
63c5d205
...
...
@@ -32,8 +32,11 @@ class SupplierShareApplyApiController extends Controller
$this
->
response
(
-
1
,
'供应商名称不能为空'
);
}
$supplierModel
=
new
SupplierChannelModel
();
$supplier
=
$supplierModel
->
where
(
'supplier_name'
,
$supplierName
)
->
where
(
'status'
,
//下面的处理是为了兼容有问题的数据
if
(
!
empty
(
$supplier
=
$supplierModel
->
where
(
'supplier_name'
,
$supplierName
)
->
first
()))
{
$supplier
=
$supplierModel
->
where
(
'supplier_name'
,
'like'
,
"%
$supplierName
%"
)
->
where
(
'status'
,
SupplierChannelModel
::
STATUS_PASSED
)
->
first
();
}
if
(
empty
(
$supplier
))
{
$this
->
response
(
-
1
,
'该供应商名称不存在,请输入正确供应商名称'
);
}
...
...
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