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
870548c2
authored
Jan 10, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化
parent
deda29e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
app/Http/Services/DataService.php
app/Http/Services/StatisticsSkuUploadService.php
app/Http/Services/DataService.php
View file @
870548c2
...
@@ -288,6 +288,9 @@ class DataService
...
@@ -288,6 +288,9 @@ class DataService
}
}
$skuCountByStandardBrandName
=
StatisticsSkuUploadService
::
getSortedBrandNameSkuCount
(
$supplier
[
'supplier_code'
]);
$skuCountByStandardBrandName
=
StatisticsSkuUploadService
::
getSortedBrandNameSkuCount
(
$supplier
[
'supplier_code'
]);
if
(
empty
(
$skuCountByStandardBrandName
))
{
continue
;
}
$skuCountByStandardBrandName
=
array_keys
(
$skuCountByStandardBrandName
);
$skuCountByStandardBrandName
=
array_keys
(
$skuCountByStandardBrandName
);
$itemData
=
[
$itemData
=
[
$supplier
[
'supplier_name'
],
$supplier
[
'supplier_name'
],
...
...
app/Http/Services/StatisticsSkuUploadService.php
View file @
870548c2
...
@@ -80,7 +80,7 @@ class StatisticsSkuUploadService
...
@@ -80,7 +80,7 @@ class StatisticsSkuUploadService
}
}
$data
=
json_decode
(
$data
,
true
);
$data
=
json_decode
(
$data
,
true
);
dump
(
$data
);
//
dump($data);
$countByBrandName
=
[];
$countByBrandName
=
[];
foreach
(
$data
as
$brandName
=>
$skuCount
)
{
foreach
(
$data
as
$brandName
=>
$skuCount
)
{
//然后获取每个品牌的标准品牌
//然后获取每个品牌的标准品牌
...
...
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