package com.jeeplus.pubmodules.luckyDraw.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeeplus.pubmodules.luckyDraw.domain.LuckyDrawMembers;
import com.jeeplus.pubmodules.luckyDraw.service.dto.LuckyDrawMembersDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author: 王强
 * @create: 2023-02-28 11:00
 **/
@Mapper
@InterceptorIgnore(tenantLine = "true")
public interface LuckyDrawMembersMapper extends BaseMapper<LuckyDrawMembers> {

    IPage<LuckyDrawMembersDto> findList(Page<LuckyDrawMembersDto> page, @Param(Constants.WRAPPER) QueryWrapper<LuckyDrawMembersDto> queryWrapper);

    Integer getByPhone(LuckyDrawMembersDto dto);

    int getByNameAndId(String name, String eventId);

    LuckyDrawMembersDto findById(String id);
}
