package com.yonge.cooleshow.biz.dal.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yonge.cooleshow.biz.dal.entity.TenantAlbum;
import com.yonge.cooleshow.biz.dal.vo.VipCardRecordVo;
import com.yonge.cooleshow.biz.dal.wrapper.TenantAlbumWrapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.yonge.cooleshow.biz.dal.entity.UserTenantAlbumRecord;
import com.yonge.cooleshow.biz.dal.wrapper.UserTenantAlbumRecordWrapper;

/**
 * 购买训练工具记录
 * 2023-07-24 13:32:24
 */
@Repository
public interface UserTenantAlbumRecordMapper extends BaseMapper<UserTenantAlbumRecord> {

    /**
     * 分页查询
     *
     * @param page  IPage<UserTenantAlbumRecordWrapper.UserTenantAlbumRecord>
     * @param param UserTenantAlbumRecordWrapper.UserTenantAlbumRecordQuery
     * @return List<UserTenantAlbumRecordWrapper.UserTenantAlbumRecord>
     */
    List<TenantAlbumWrapper.TenantAlbum> selectPage(@Param("page") IPage<UserTenantAlbumRecord> page, @Param("param") UserTenantAlbumRecordWrapper.UserTenantAlbumRecordQuery param);

    List<UserTenantAlbumRecordWrapper.UserTenantAlbumRecord> selectUserTenantAlbumRecordPage(@Param("page") IPage<UserTenantAlbumRecordWrapper.UserTenantAlbumRecord> page, @Param("param") UserTenantAlbumRecordWrapper.UserTenantAlbumRecordQuery param);

    List<Long> selectTenantIds(@Param("id") Long id);

    List<TenantAlbum> selectTenantAlbumInfo(@Param("tenantIds") List<Long> tenantIds);

    List<Long> ifBuy(@Param("tenantAlbumId") List<Long> tenantAlbumId, @Param("studentId") Long studentId);

    List<UserTenantAlbumRecordWrapper.UserTenantAlbumRecord> selectTemporaryRecord();
}