INSERT INTO friend_notify (from_user_id, to_user_id, type, status, content, create_time) VALUES (#{fromUserId}, #{toUserId}, #{type}, #{status}, #{content}, #{createTime}) UPDATE friend_notify SET status = 'read', read_time = NOW() WHERE id = #{id}