Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
jd_data_process
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
221d6723
authored
Oct 23, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add vc class
parent
ad06ab27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
vc.py
vc.py
View file @
221d6723
...
...
@@ -76,6 +76,12 @@ def insert_vc_class(conf: dict):
status
=
1
platform
=
1
create_time
=
int
(
time
.
time
())
# check if already exist.
check_sql
=
"select class_id from lie_shop_class where class_id =
%
s"
cursor
.
execute
(
query
=
check_sql
,
args
=
(
class_id
,))
check_result
=
cursor
.
fetchall
()
if
len
(
check_result
)
>
0
:
continue
insert_sql
=
"insert into lie_shop_class (parent_id, class_id, class_name, depth, status, platform, create_time) values (
%
s,
%
s,
%
s,
%
s,
%
s,
%
s,
%
s)"
cursor
.
execute
(
query
=
insert_sql
,
args
=
(
parent_id
,
class_id
,
class_name
,
depth
,
status
,
platform
,
create_time
,))
db
.
commit
()
...
...
@@ -372,4 +378,3 @@ def get_vc_goods_info(ware_id: str):
if
__name__
==
'__main__'
:
get_vc_goods_info
(
"100124079761"
)
\ No newline at end of file
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