mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-09 08:57:16 +08:00
@@ -18,10 +18,14 @@
|
|||||||
t1.publish_time,
|
t1.publish_time,
|
||||||
t1.is_top,
|
t1.is_top,
|
||||||
t1.status,
|
t1.status,
|
||||||
t1.create_user,
|
t1.create_user
|
||||||
t2.read_time IS NOT NULL AS isRead
|
<if test="query.userId != null">
|
||||||
|
,t2.read_time IS NOT NULL AS isRead
|
||||||
|
</if>
|
||||||
FROM sys_notice AS t1
|
FROM sys_notice AS t1
|
||||||
LEFT JOIN sys_notice_log AS t2 ON t2.notice_id = t1.id
|
<if test="query.userId != null">
|
||||||
|
LEFT JOIN sys_notice_log AS t2 ON t2.notice_id = t1.id AND t2.user_id = #{query.userId}
|
||||||
|
</if>
|
||||||
<where>
|
<where>
|
||||||
<if test="query.userId != null">
|
<if test="query.userId != null">
|
||||||
<choose>
|
<choose>
|
||||||
|
Reference in New Issue
Block a user