Skip to content

Commit af1f540

Browse files
committed
fix: 修复查询公告错误
1 parent 4989161 commit af1f540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

continew-module-system/src/main/resources/mapper/NoticeMapper.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
LEFT JOIN sys_notice_log AS t2 ON t2.notice_id = t1.id
2525
<where>
2626
<if test="query.userId != null">
27-
(t1.notice_scope = 1 OR (t1.notice_scope = 2 AND JSON_CONTAINS(t1.notice_users, CONCAT('"', #{userId}, '"'))))
27+
(t1.notice_scope = 1 OR (t1.notice_scope = 2 AND JSON_CONTAINS(t1.notice_users, CONCAT('"', #{query.userId}, '"'))))
2828
</if>
2929
<if test="query.title != null and query.title != ''">
3030
AND t1.title LIKE CONCAT('%', #{query.title}, '%')

0 commit comments

Comments
 (0)