From 3c822d581ce00db7d3b4b39e871dee11d12e63f2 Mon Sep 17 00:00:00 2001 From: wanghao Date: Wed, 11 Feb 2026 16:40:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=B6=88=E6=81=AF=E9=80=9A?= =?UTF-8?q?=E7=9F=A5sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/updatesql/20260205-xj-system新增表.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/updatesql/20260205-xj-system新增表.sql b/db/updatesql/20260205-xj-system新增表.sql index 780c6d0..2e591f2 100644 --- a/db/updatesql/20260205-xj-system新增表.sql +++ b/db/updatesql/20260205-xj-system新增表.sql @@ -31,5 +31,5 @@ CREATE TABLE `sys_message_notice_scope` ( PRIMARY KEY (`id`), KEY `idx_notice_id` (`notice_id`), KEY `idx_type` (`type`), - KEY `idx_scope_id` (`scope_id`) + KEY `idx_scope_notice` (`scope_id`, `notice_id`) COMMENT '联表查询复合索引,支持WHERE scope_id + JOIN notice_id' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='消息通知范围表';