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
6ff93c40
authored
Nov 05, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
select clz
parent
47cc8e35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
test6.py
test6.py
View file @
6ff93c40
...
...
@@ -83,5 +83,18 @@ def modify_apply_id_map():
db
.
commit
()
print
(
update_sql
%
(
apply_id
,
id
))
def
select_clz_ids
():
conf
=
config_prod
db
=
pymysql
.
connect
(
host
=
conf
[
"mysql"
][
"host"
],
port
=
conf
[
"mysql"
][
"port"
],
user
=
conf
[
"mysql"
][
"user"
],
password
=
conf
[
"mysql"
][
"password"
],
database
=
conf
[
"mysql"
][
"database"
])
cursor
=
db
.
cursor
()
select_sql
=
"select lie_class_id from lie_shop_class_mapping where platform = 1"
cursor
.
execute
(
query
=
select_sql
)
db_result
=
cursor
.
fetchall
()
ans
=
[]
for
i
in
range
(
len
(
db_result
)):
class_id
=
db_result
[
i
][
0
]
ans
.
append
(
class_id
)
print
(
ans
)
if
__name__
==
'__main__'
:
modify_apply_id_map
()
\ No newline at end of file
select_clz_ids
()
\ 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