package com.xxfc.platform.activity.mapper;

import com.xxfc.platform.activity.dto.ActivityAttendanceRecordDTO;
import com.xxfc.platform.activity.dto.ActivityAttendanceRecordFindDTO;
import com.xxfc.platform.activity.entity.ActivityAttendanceRecord;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 参与活动数据
 * 
 * @author libin
 * @email 18178966185@163.com
 * @date 2019-12-04 14:54:06
 */
public interface ActivityAttendanceRecordMapper extends Mapper<ActivityAttendanceRecord> {

    List<ActivityAttendanceRecordDTO> selectActivityAttendanceRecord(ActivityAttendanceRecordFindDTO activityAttendanceRecordFindDTO);

    void updateLotteryNumByActivityIdAndUserIdAndPrizeType(@Param("activityId") Integer activityId,
                                                           @Param("userId") Integer userId,
                                                           @Param("prizeType") Integer prizeType);
}
