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

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
@@ -27,7 +27,7 @@ def insert_sca_image(
other_info = json.dumps(other_info)
cursor.execute(
"""
INSERT INTO sca_images (
INSERT INTO image_sca (
upload_datetime, file_name, resolution, size, cocoon_count, max_confidence, min_confidence,
average_confidence, other_info, preprocess_time_ms, inference_time_ms, postprocess_time_ms, name, image_pre, image_after, created_by
)
@@ -70,7 +70,7 @@ def get_sca_image_list(user_id, name, page=1, page_size=10):
cursor.execute(
"""
SELECT COUNT(*)
FROM sca_images
FROM image_sca
WHERE created_by = %s
AND (%s = '' OR name LIKE '%%' || %s || '%%')
""",
@@ -85,7 +85,7 @@ def get_sca_image_list(user_id, name, page=1, page_size=10):
"""
SELECT id, name, upload_datetime, file_name, image_pre, image_after, resolution,
size, cocoon_count, max_confidence, min_confidence, average_confidence, other_info, preprocess_time_ms, inference_time_ms, postprocess_time_ms
FROM sca_images
FROM image_sca
WHERE created_by = %s
AND (%s = '' OR name LIKE '%%' || %s || '%%')
ORDER BY upload_datetime DESC