package com.hzs.activity.draw.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.common.domain.activity.draw.AcDrawRewardNum;
import com.hzs.common.domain.activity.draw.AcDrawRewardNumDetail;
import com.hzs.common.domain.sale.ext.SaOrderExt;

import java.util.List;

/**
 * 订单赠送抽奖次数记录 服务类
 *
 * @author hzs
 * @since 2023-05-09
 */
public interface IAcDrawRewardNumDetailService extends IService<AcDrawRewardNumDetail> {

    /*
     * @description: 保存获取抽奖次数明细
     * @author: sui q
     * @date: 2023/5/9 9:34
     * @param: null null
     **/
    void saveAcDrawRewardNumDetail(AcDrawRewardNum acDrawRewardNum, Integer giveNum, SaOrderExt saOrderExt);

    /*
     * @description: 根据订单主键查询是否赠送过抽奖次数
     * @author: sui q
     * @date: 2023/5/9 9:48
     * @param: null null
     **/
    List<AcDrawRewardNumDetail> queryAcDrawRewardNumBySaOrder(Long pkOrder);

    /*
     * @description: 删除赠送明细表
     * @author: sui q
     * @date: 2023/5/9 10:03
     * @param: null null
     **/
    void deleteAcDrawRewardNumDetail(AcDrawRewardNumDetail acDrawRewardNumDetail);
}
