package com.hzs.bonus.bonus.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.bonus.bonus.param.BdWaresBonusParam;
import com.hzs.common.domain.member.bonus.BdWaresBonus;
import com.hzs.common.domain.member.ext.BdWaresBonusExt;

import java.util.List;

/**
 * <p>
 * 特殊商品分配奖金 服务类
 * </p>
 *
 * @author hzs
 * @since 2024-10-30
 */
public interface IBdWaresBonusService extends IService<BdWaresBonus> {

    /*
     * @description: 查询特殊品奖金配置
     * @author: sui q 
     * @date: 2024/10/30 10:55
     * @param: null null
     **/
    List<BdWaresBonusExt> querySpecialWaresBonus(BdWaresBonusParam waresBonusParam);

    /*
     * @description: 根据主键删除特殊商品奖金配置
     * @author: sui q
     * @date: 2024/11/8 9:58
     * @param: null null
     **/
    void deleteSpecialWaresBonus(Long pkId, Long userId);

    /*
     * @description: 根据商品id查询是否已经存在数据
     * @author: sui q
     * @date: 2024/11/7 15:51
     * @param: null null
     **/
    BdWaresBonus queryWaresBonusById(BdWaresBonusParam waresBonusParam);

    /*
     * @description: 插入商品奖金根据参数
     * @author: sui q
     * @date: 2024/11/7 13:47
     * @param: null null
     **/
    void insertOrUpdateBdWaresBonusByParam(BdWaresBonusParam bdWaresBonusParam, Long userId);

    /*
     * @description: 查询能设置奖金的特殊品
     * @author: sui q
     * @date: 2024/11/8 10:19
     * @param: null null
     **/
    List<BdWaresBonusExt> querySpecialWaresBonus();
}
