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
0d136fdf
Commit
0d136fdf
authored
Jul 02, 2021
by
rico.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6f93a122
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
更新库内产品数据.py
公共代码/更新库内产品数据.py
+8
-0
No files found.
公共代码/更新库内产品数据.py
View file @
0d136fdf
...
@@ -139,13 +139,21 @@ def upload_params_data(category,path):
...
@@ -139,13 +139,21 @@ def upload_params_data(category,path):
process_index
=
0
process_index
=
0
index_
=
Index
()
index_
=
Index
()
#SPU、SKU命名
#SPU、SKU命名
#temp_index_list = []
#temp_index_list = [i for i in range(8843)]
for
index
,
row
in
df
.
iterrows
():
for
index
,
row
in
df
.
iterrows
():
try
:
try
:
print
(
index_
(
process_index
,
len
(
df
)
-
1
),
end
=
'
%
'
)
print
(
index_
(
process_index
,
len
(
df
)
-
1
),
end
=
'
%
'
)
except
:
except
:
print
(
index_
(
process_index
,
1
),
end
=
'
%
'
)
print
(
index_
(
process_index
,
1
),
end
=
'
%
'
)
process_index
+=
1
process_index
+=
1
if
index
in
temp_index_list
:
continue
else
:
temp_index_list
.
append
(
index
)
sku
=
row
[
'产品编码'
]
sku
=
row
[
'产品编码'
]
brandname
=
row
[
'产品品牌'
]
brandname
=
row
[
'产品品牌'
]
cursor_zi_new
.
execute
(
f
"select id from p_brand where name = '{brandname}' and id not in (select distinct pid from p_brand)"
)
cursor_zi_new
.
execute
(
f
"select id from p_brand where name = '{brandname}' and id not in (select distinct pid from p_brand)"
)
...
...
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