Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
中
中电中采
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZGC_INDEX
中电中采
Commits
a9847ef8
Commit
a9847ef8
authored
Apr 16, 2021
by
rico.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a3879b28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
stockInfo.py
public/SKUStockInfo/stockInfo.py
+12
-3
No files found.
public/SKUStockInfo/stockInfo.py
View file @
a9847ef8
...
@@ -313,7 +313,6 @@ def get_new_name(category,brandname,params):
...
@@ -313,7 +313,6 @@ def get_new_name(category,brandname,params):
#std_params_list = df['params_standard'].apply(lambda x:eval(x)).tolist()
#std_params_list = df['params_standard'].apply(lambda x:eval(x)).tolist()
def
stock_in_product
(
zi_brandname_list
,
zi_brandcode_list
,
zi_subcategoryname
,
zi_subcategorycode
,
std_params_list
,
newname_list
):
def
stock_in_product
(
zi_brandname_list
,
zi_brandcode_list
,
zi_subcategoryname
,
zi_subcategorycode
,
std_params_list
,
newname_list
):
#
#
...
@@ -383,6 +382,16 @@ def stock_in_product(zi_brandname_list,zi_brandcode_list,zi_subcategoryname,zi_s
...
@@ -383,6 +382,16 @@ def stock_in_product(zi_brandname_list,zi_brandcode_list,zi_subcategoryname,zi_s
if
spu_param
==
'产品品牌'
:
if
spu_param
==
'产品品牌'
:
continue
continue
else
:
else
:
if
spu_param
==
'产品系列(SPU)'
:
if
'彩色'
in
params
[
'产品系列'
]:
value
=
'彩色复印纸'
else
:
value
=
params
[
'产品系列'
]
name
+=
" "
name
+=
str
(
value
)
else
:
name
+=
" "
name
+=
" "
name
+=
str
(
params
[
spu_param
])
name
+=
str
(
params
[
spu_param
])
...
...
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