chenrui
2025-04-03 32ddd9d13c53dd7fe5a09120ca59b29e61afc0cc
ruoyi-system/src/main/resources/mapper/system/InformationNotificationMapper.xml
@@ -13,4 +13,14 @@
        </if>
        order by i.create_time desc
    </select>
    <select id="msgRoll" resultType="com.ruoyi.common.core.domain.entity.InformationNotificationDto">
        select i.*, u.name senderUser, u2.name consigneeUser
        from information_notification i
        left join user u on i.sender_id = u.id
        left join user u2 on u2.id = i.consignee_id
        where i.consignee_id = #{userId}
        order by i.create_time desc
    </select>
</mapper>