From 7cb34b3aa54a019ff57a57ddf2146d4b781e0f4f Mon Sep 17 00:00:00 2001 From: KAI <1373639299@qq.com> Date: Mon, 7 Apr 2025 14:32:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=9A=E7=9F=A5=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=9A=84=E6=95=B0=E6=8D=AE=E4=B8=8D=E5=87=86?= =?UTF-8?q?=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/NoticeMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/continew-module-system/src/main/resources/mapper/NoticeMapper.xml b/continew-module-system/src/main/resources/mapper/NoticeMapper.xml index 71fb2e80..34f091ea 100644 --- a/continew-module-system/src/main/resources/mapper/NoticeMapper.xml +++ b/continew-module-system/src/main/resources/mapper/NoticeMapper.xml @@ -10,7 +10,7 @@ WHERE (effective_time IS NULL OR NOW() > effective_time) AND (terminate_time IS NULL OR terminate_time > NOW()) - AND (notice_scope = 1 OR (notice_scope = 2 AND JSON_EXTRACT(notice_users, "$[0]") = CAST(#{userId} AS CHAR))) + AND (notice_scope = 1 OR (notice_scope = 2 AND JSON_CONTAINS(notice_users, CONCAT('"', #{userId}, '"')))) ORDER BY sort ASC, effective_time DESC LIMIT 5