消息通知系统-一键已读;反复点赞、关注及取消 数据存储处理,
This commit is contained in:
@@ -40,4 +40,27 @@
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="setPersonalNotificationAllRead">
|
||||
update `t_notification`
|
||||
SET
|
||||
is_read = 1,
|
||||
update_time = #{time}
|
||||
WHERE type = #{type}
|
||||
AND receiver_id = #{receiverId}
|
||||
AND is_read = 0
|
||||
AND is_deleted = 0
|
||||
</update>
|
||||
|
||||
<select id="getUnreadSysNotification" resultType="Long">
|
||||
SELECT id
|
||||
FROM `t_notification`
|
||||
WHERE type = 'system'
|
||||
AND id NOT IN (
|
||||
SELECT system_notification_id
|
||||
FROM `t_sys_notification_read_status`
|
||||
WHERE account_id = #{accountId}
|
||||
)
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user