From 8790ecfb1e2d71747b31cef97617025e372798f1 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Sun, 16 Nov 2025 21:31:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(system/notice):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=88=91=E7=9A=84=E5=85=AC=E5=91=8A=E6=9F=A5=E8=AF=A2=E5=88=B0?= =?UTF-8?q?=E5=BE=85=E5=8F=91=E5=B8=83=E5=85=AC=E5=91=8A=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #ID6PDL --- continew-system/src/main/resources/mapper/NoticeMapper.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/continew-system/src/main/resources/mapper/NoticeMapper.xml b/continew-system/src/main/resources/mapper/NoticeMapper.xml index ebab8974..8cc720e1 100644 --- a/continew-system/src/main/resources/mapper/NoticeMapper.xml +++ b/continew-system/src/main/resources/mapper/NoticeMapper.xml @@ -27,6 +27,7 @@ WHERE t1.deleted = 0 + AND t1.status = 3 AND (t1.notice_scope = 1 OR (t1.notice_scope = 2 AND JSON_CONTAINS(t1.notice_users, CONCAT('"', #{query.userId}, '"')))) @@ -55,7 +56,7 @@ t1.id FROM sys_notice AS t1 LEFT JOIN sys_notice_log AS t2 ON t2.notice_id = t1.id AND t2.user_id = #{userId} - WHERE t1.deleted = 0 + WHERE t1.deleted = 0 AND t1.status = 3 AND (t1.notice_scope = 1 OR (t1.notice_scope = 2 AND JSON_CONTAINS(t1.notice_users, CONCAT('"', #{userId}, '"'))))