package com.czg.service.account.service.impl;

import com.czg.account.dto.QueryReceiveDto;
import com.czg.account.entity.ShopActivateCouponRecord;
import com.czg.account.service.ShopActivateCouponRecordService;
import com.czg.account.vo.CouponReceiveVo;
import com.czg.account.vo.UserCouponVo;
import com.czg.service.account.mapper.ShopActivateCouponRecordMapper;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.List;

/**
 * 活动商品赠送记录表 服务层实现。
 *
 * @author ww
 * @since 2025-02-20
 */
@DubboService
public class ShopActivateCouponRecordServiceImpl extends ServiceImpl<ShopActivateCouponRecordMapper, ShopActivateCouponRecord> implements ShopActivateCouponRecordService {

    @Override
    public List<CouponReceiveVo> queryReceive(QueryReceiveDto param) {
        return getMapper().queryReceive(param);
    }

    @Override
    public List<ShopActivateCouponRecord> findByUser(List<Long> shopUserIds, Integer status) {
        return getMapper().findByUser(shopUserIds, status);
    }

    @Override
    public List<UserCouponVo> queryByVipIdAndShopId(Long shopId, Long shopUserId, Integer type) {
        return getMapper().queryByVipIdAndShopId(shopId, shopUserId, type);
    }
}
