package com.artfess.query.dao;

import com.artfess.query.model.BizQueryBrowseHistory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 个人浏览历史记录日志表（BIZ_QUERY_BROWSE_HISTORY） Mapper 接口
 *
 * @company 阿特菲斯信息技术有限公司
 * @author wh
 * @since 2025-02-17
 */
public interface BizQueryBrowseHistoryDao extends BaseMapper<BizQueryBrowseHistory> {

    /**
     * 查询当前本内容是否浏览过
     * @param userId 人员ID
     * @param searchContent 内容
     * @return
     */
    //@Select("select count(*) num from Biz_Query_Browse_History where USER_ID_ = #{userId} and SEARCH_CONTENT_ = #{searchContent} and SEARCH_TIME_ = #{searchTime}")
    //Integer queryBrowseHistoryCount(@Param("userId") String userId,@Param("searchContent")  String searchContent,@Param("searchTime") String searchTime);
}
