From 72493f8161582a0afe329f8d54de347aad76959b Mon Sep 17 00:00:00 2001 From: Charles7c Date: Thu, 10 Jul 2025 09:12:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(system/notice):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=9D=9E=E7=AE=A1=E7=90=86=E5=91=98=E7=94=A8=E6=88=B7=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=B8=AA=E4=BA=BA=E5=B7=B2=E8=AF=BB=E5=85=AC=E5=91=8A?= =?UTF-8?q?=E6=97=B6=E5=87=BA=E7=8E=B0=E9=87=8D=E5=A4=8D=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #174 --- .../src/main/resources/mapper/NoticeMapper.xml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/continew-system/src/main/resources/mapper/NoticeMapper.xml b/continew-system/src/main/resources/mapper/NoticeMapper.xml index d35743b4..1268ad0e 100644 --- a/continew-system/src/main/resources/mapper/NoticeMapper.xml +++ b/continew-system/src/main/resources/mapper/NoticeMapper.xml @@ -18,10 +18,14 @@ t1.publish_time, t1.is_top, t1.status, - t1.create_user, - t2.read_time IS NOT NULL AS isRead + t1.create_user + + ,t2.read_time IS NOT NULL AS isRead + FROM sys_notice AS t1 - LEFT JOIN sys_notice_log AS t2 ON t2.notice_id = t1.id + + LEFT JOIN sys_notice_log AS t2 ON t2.notice_id = t1.id AND t2.user_id = #{query.userId} +