调整数据库表名,增加催青阶段分析演示模块
This commit is contained in:
@@ -10,7 +10,7 @@ def insert_license_image(
|
||||
with conn.cursor() as cursor:
|
||||
cursor.execute(
|
||||
"""
|
||||
INSERT INTO license_images (
|
||||
INSERT INTO image_license (
|
||||
created_by, created_at, file_name, resolution, size, name, oss,
|
||||
type, content
|
||||
)
|
||||
@@ -36,7 +36,7 @@ def get_license_image_list(user_id, page=1, page_size=10):
|
||||
cursor.execute(
|
||||
"""
|
||||
SELECT COUNT(*)
|
||||
FROM license_images
|
||||
FROM image_license
|
||||
WHERE created_by = %s
|
||||
""",
|
||||
(user_id,),
|
||||
@@ -47,7 +47,7 @@ def get_license_image_list(user_id, page=1, page_size=10):
|
||||
cursor.execute(
|
||||
"""
|
||||
SELECT created_at, file_name, resolution, size, name, oss, id, type, content
|
||||
FROM license_images
|
||||
FROM image_license
|
||||
WHERE created_by = %s
|
||||
ORDER BY created_at DESC
|
||||
LIMIT %s OFFSET %s
|
||||
|
||||
Reference in New Issue
Block a user