update
This commit is contained in:
@@ -191,8 +191,8 @@
|
||||
IF ( nrr.id IS NULL, 0, 1 ) readStatus
|
||||
FROM
|
||||
tb_pluss_notice n
|
||||
LEFT JOIN tb_pluss_notice_read_record nrr ON n.id = nrr.noticeId
|
||||
AND nrr.userId = n.userId
|
||||
LEFT JOIN tb_pluss_notice_read_record nrr ON n.id = nrr.noticeId AND nrr.type='2'
|
||||
AND nrr.userId = #{userId}
|
||||
<where>
|
||||
<if test="id!= null">
|
||||
and n.id = #{id}
|
||||
|
||||
Reference in New Issue
Block a user