package com.liquidnet.service.goblin.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liquidnet.service.goblin.entity.GoblinNftExCode;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * NFT兑换码表 Mapper 接口
 * </p>
 *
 * @author jiangxiulong
 * @since 2022-04-19
 */
@Repository
public interface GoblinNftExCodeMapper extends BaseMapper<GoblinNftExCode> {

    /**
     * 批量添加兑换码信息
     * @param goblinNftExCodes
     * @return
     */
    int addGoblinNftExCodes(@Param("goblinNftExCodes") List<GoblinNftExCode> goblinNftExCodes);

    /**
     * 根据活动ids查询
     * @param activityIds
     * @return
     */
    List<GoblinNftExCode> selectByActivityIds(@Param("activityIds") String activityIds);


    /**
     * 条件查询 兑换码
     * @param goblinNftExCode
     * @return
     */
    List<GoblinNftExCode> selectGoblinNftCode(GoblinNftExCode goblinNftExCode);
}
