You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
731 B

package com.youlai.boot.mini.mapper;
import com.youlai.boot.mini.model.entity.MiniStrayAnimalNoteView;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 动物笔记浏览记录表 Mapper 接口
*
* @author jwy
* @since
*/
public interface MiniStrayAnimalNoteViewMapper extends BaseMapper<MiniStrayAnimalNoteView> {
/**
* 新增或更新浏览记录重复则更新最后浏览时间
*/
int insertOrUpdateView(MiniStrayAnimalNoteView view);
/**
* 查询指定用户的浏览过的笔记ID
*/
List<Long> selectViewedNoteIdsByUserAndTime(@Param("userId") Long userId, @Param("startTime") Long startTime);
}