mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-12-08 18:57:11 +08:00
fix(system/notice): 修复我的公告查询到待发布公告的问题
Closes #ID6PDL
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
</if>
|
||||
WHERE t1.deleted = 0
|
||||
<if test="query.userId != null">
|
||||
AND t1.status = 3
|
||||
<choose>
|
||||
<when test="_databaseId == 'mysql'">
|
||||
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
|
||||
<choose>
|
||||
<when test="_databaseId == 'mysql'">
|
||||
AND (t1.notice_scope = 1 OR (t1.notice_scope = 2 AND JSON_CONTAINS(t1.notice_users, CONCAT('"', #{userId}, '"'))))
|
||||
|
||||
Reference in New Issue
Block a user