Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tool-code
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
tool-code
Commits
7b7f57b7
Commit
7b7f57b7
authored
Dec 06, 2021
by
rico.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 硒鼓/墨粉 适用机型
parent
744a94ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
更新库内产品数据.py
更新库内参数并重新命名/更新库内产品数据.py
+7
-3
No files found.
更新库内参数并重新命名/更新库内产品数据.py
View file @
7b7f57b7
...
@@ -176,7 +176,7 @@ def upload_params_data(category,path):
...
@@ -176,7 +176,7 @@ def upload_params_data(category,path):
cursor_zi_new
.
execute
(
f
"select name from p_brand where id = {father_brand_code}"
)
cursor_zi_new
.
execute
(
f
"select name from p_brand where id = {father_brand_code}"
)
father_brand
=
cursor_zi_new
.
fetchone
()[
0
]
.
strip
()
father_brand
=
cursor_zi_new
.
fetchone
()[
0
]
.
strip
()
except
:
except
:
print
(
f
"异常品牌编码: {father_brand_code},请检查产品品牌表"
)
print
(
f
"
{brandname},
异常品牌编码: {father_brand_code},请检查产品品牌表"
)
break
break
spu_brandname
=
father_brand
spu_brandname
=
father_brand
else
:
else
:
...
@@ -291,6 +291,10 @@ def upload_params_data(category,path):
...
@@ -291,6 +291,10 @@ def upload_params_data(category,path):
value
=
str
(
params
[
element
])
value
=
str
(
params
[
element
])
if
element
==
'适用机型'
:
skuname
+=
"("
+
value
+
") "
continue
value
=
transform_simplevalue
(
tip
,
single_data_dict
,
category
,
element
,
value
.
upper
())
value
=
transform_simplevalue
(
tip
,
single_data_dict
,
category
,
element
,
value
.
upper
())
skuname
+=
"("
+
value
+
") "
skuname
+=
"("
+
value
+
") "
...
@@ -560,8 +564,8 @@ def check_configure_price(category,path,params_list):
...
@@ -560,8 +564,8 @@ def check_configure_price(category,path,params_list):
category
=
'
台式机
'
category
=
'
复印纸
'
path
=
'/Users/rico/WorkSpace/1_Project/Company/中电中采/4_中电商品库功能类/更新库内参数并重新命名/
台式机
参数确认(校验通过).xlsx'
path
=
'/Users/rico/WorkSpace/1_Project/Company/中电中采/4_中电商品库功能类/更新库内参数并重新命名/
复印纸
参数确认(校验通过).xlsx'
upload_params_data
(
category
,
path
)
upload_params_data
(
category
,
path
)
...
...
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