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
54ef12e0
authored
Mar 18, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复公用申请问题
parent
af339173
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
app/Http/Controllers/Api/SupplierShareApplyApiController.php
app/Http/routes.php
app/Http/Controllers/Api/SupplierShareApplyApiController.php
View file @
54ef12e0
...
...
@@ -41,7 +41,7 @@ class SupplierShareApplyApiController extends Controller
}
$supplierModel
=
new
SupplierChannelModel
();
//下面的处理是为了兼容有问题的数据
if
(
!
empty
(
$supplier
=
$supplierModel
->
where
(
'supplier_name'
,
$supplierName
)
->
first
()))
{
if
(
!
empty
(
$supplier
=
$supplierModel
->
where
(
'supplier_name'
,
$supplierName
)
->
where
(
'group_code'
,
'!='
,
''
)
->
first
()))
{
// $supplier = $supplierModel->where('supplier_name', 'like', "%$supplierName%")->whereNotIn('status',
// [SupplierChannelModel::STATUS_DISABLE, SupplierChannelModel::STATUS_REJECT])->first();
}
...
...
app/Http/routes.php
View file @
54ef12e0
...
...
@@ -60,7 +60,7 @@ Route::group(['middleware' => ['web'], 'namespace' => 'Api'], function () {
Route
::
match
([
'get'
,
'post'
],
'/api/supplier_memo/{key}'
,
'SupplierMemoApiController@Entrance'
);
//单独的统计接口
Route
::
match
([
'get'
,
'post'
],
'/statisticsSkuNumber'
,
function
()
{
(
new
\App\Http\Services\DataService
())
->
s
yncDaigouSuppliersToErp
();
(
new
\App\Http\Services\DataService
())
->
s
tatisticsSkuNumberFromSKu
();
});
});
...
...
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