更新外观模块

This commit is contained in:
super
2026-05-06 22:41:26 +08:00
parent a00ff1804c
commit 8cd1a4e2b1
24 changed files with 1378 additions and 175 deletions

View File

@@ -0,0 +1,35 @@
SET @schema_name = DATABASE();
SET @idx_file_result_patrol_history_desc_exists := (
SELECT COUNT(1)
FROM information_schema.STATISTICS
WHERE TABLE_SCHEMA = @schema_name
AND TABLE_NAME = 'biz_file_result'
AND INDEX_NAME = 'idx_file_result_patrol_history_desc'
);
SET @sql_add_file_result_patrol_history_desc_idx := IF(
@idx_file_result_patrol_history_desc_exists = 0,
'ALTER TABLE biz_file_result ADD INDEX idx_file_result_patrol_history_desc (module_type, user_id, created_at DESC, id DESC)',
'SELECT 1'
);
PREPARE stmt_add_file_result_patrol_history_desc_idx FROM @sql_add_file_result_patrol_history_desc_idx;
EXECUTE stmt_add_file_result_patrol_history_desc_idx;
DEALLOCATE PREPARE stmt_add_file_result_patrol_history_desc_idx;
SET @idx_task_file_job_patrol_history_lookup_exists := (
SELECT COUNT(1)
FROM information_schema.STATISTICS
WHERE TABLE_SCHEMA = @schema_name
AND TABLE_NAME = 'biz_task_file_job'
AND INDEX_NAME = 'idx_task_file_job_patrol_history_lookup'
);
SET @sql_add_task_file_job_patrol_history_lookup_idx := IF(
@idx_task_file_job_patrol_history_lookup_exists = 0,
'ALTER TABLE biz_task_file_job ADD INDEX idx_task_file_job_patrol_history_lookup (module_type, job_type, result_id, status)',
'SELECT 1'
);
PREPARE stmt_add_task_file_job_patrol_history_lookup_idx FROM @sql_add_task_file_job_patrol_history_lookup_idx;
EXECUTE stmt_add_task_file_job_patrol_history_lookup_idx;
DEALLOCATE PREPARE stmt_add_task_file_job_patrol_history_lookup_idx;

View File

@@ -0,0 +1,15 @@
CREATE TABLE IF NOT EXISTS biz_similar_asin_filter_condition (
id BIGINT PRIMARY KEY AUTO_INCREMENT,
user_id BIGINT NOT NULL,
condition_text VARCHAR(500) NOT NULL,
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
UNIQUE KEY uk_similar_asin_filter_condition_user_text (user_id, condition_text),
KEY idx_similar_asin_filter_condition_user_id (user_id)
);
UPDATE `columns`
SET `name` = 'source query',
`menu_type` = 'app',
`route_path` = 'similar-asin',
`sort_order` = 112
WHERE `column_key` = 'similar_asin';