package com.sqx.modules.activity.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sqx.modules.activity.dto.ActivityPartRecordQueryDTO;
import com.sqx.modules.activity.entity.ActivityPartRecord;
import com.sqx.modules.activity.vo.ActivityPartRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 活动参与记录
 * @author : codingliang
 * @date : 2024-6-24
 */
@Mapper
public interface ActivityPartRecordDao extends BaseMapper<ActivityPartRecord> {

    ActivityPartRecordVO getVoById(@Param("recordId") Long recordId);

    IPage<ActivityPartRecordVO> pageByQuery(@Param("pages") Page<ActivityPartRecord> pages, @Param("queryDTO") ActivityPartRecordQueryDTO queryDTO);
}
