package com.czg.service.account.mapper;

import com.czg.account.dto.QueryReceiveDto;
import com.czg.account.entity.ShopActivateCouponRecord;
import com.czg.account.vo.CouponReceiveVo;
import com.czg.account.vo.UserCouponVo;
import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 活动商品赠送记录表 映射层。
 *
 * @author ww
 * @since 2025-02-20
 */
public interface ShopActivateCouponRecordMapper extends BaseMapper<ShopActivateCouponRecord> {

    List<CouponReceiveVo> queryReceive(@Param("param") QueryReceiveDto param);

    List<ShopActivateCouponRecord> findByUser(List<Long> shopUserIds, Integer status);

    List<UserCouponVo> queryByVipIdAndShopId(Long shopId, Long shopUserId, Integer type);
}
