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
981e45a4
authored
Jun 05, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
初始化品牌
parent
2fbab8e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
app/Http/Services/DataService.php
app/Http/Services/DataService.php
View file @
981e45a4
...
...
@@ -1201,13 +1201,13 @@ class DataService
//初始化主营品牌到上传限制
public
function
initialMainBrandsToSkuRuler
()
{
$suppliers
=
SupplierChannelModel
::
where
(
'main_brands'
,
'!='
,
''
)
->
where
(
'is_type'
,
0
)
->
get
()
->
toArray
();
$suppliers
=
SupplierChannelModel
::
where
(
'main_brands'
,
'!='
,
''
)
->
get
()
->
toArray
();
$redis
=
new
RedisModel
();
foreach
(
$suppliers
as
$supplier
)
{
if
(
DataManageModel
::
where
(
'canal'
,
$supplier
[
'supplier_code'
])
->
where
(
'is_type'
,
0
)
->
exists
())
{
dump
(
"大数据供应商"
);
continue
;
}
//
if (DataManageModel::where('canal', $supplier['supplier_code'])->where('is_type', 0)->exists()) {
//
dump("大数据供应商");
//
continue;
//
}
if
(
trim
(
$supplier
[
'main_brands'
],
','
))
{
$mainBrands
=
explode
(
','
,
trim
(
$supplier
[
'main_brands'
],
','
));
$ruler
=
$redis
->
hget
(
'supplier_sku_upload_ruler_v2'
,
$supplier
[
'supplier_id'
]);
...
...
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