mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-10-28 04:57:17 +08:00
fix: 修复查询公告错误
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
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
|
||||||
<where>
|
<where>
|
||||||
<if test="query.userId != null">
|
<if test="query.userId != null">
|
||||||
(t1.notice_scope = 1 OR (t1.notice_scope = 2 AND JSON_CONTAINS(t1.notice_users, CONCAT('"', #{userId}, '"'))))
|
(t1.notice_scope = 1 OR (t1.notice_scope = 2 AND JSON_CONTAINS(t1.notice_users, CONCAT('"', #{query.userId}, '"'))))
|
||||||
</if>
|
</if>
|
||||||
<if test="query.title != null and query.title != ''">
|
<if test="query.title != null and query.title != ''">
|
||||||
AND t1.title LIKE CONCAT('%', #{query.title}, '%')
|
AND t1.title LIKE CONCAT('%', #{query.title}, '%')
|
||||||
|
|||||||
Reference in New Issue
Block a user