package com.zbkj.service.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.model.record.BrowseRecord;
import org.apache.ibatis.annotations.Update;

/**
 * 浏览记录表 Mapper 接口
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */
public interface BrowseRecordDao extends BaseMapper<BrowseRecord> {

    @Update("update eb_browse_record set date = #{date,jdbcType=VARCHAR} where uid = #{uid,jdbcType=INTEGER} and product_id = #{productId,jdbcType=INTEGER}")
    Integer myUpdate(BrowseRecord browseRecord);
}
