调整数据库表名,增加催青阶段分析演示模块

This commit is contained in:
BBIT-Kai
2026-01-04 16:06:13 +08:00
parent 209d087fa5
commit e2982b141d
16 changed files with 589 additions and 34 deletions
+3 -3
View File
@@ -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