package com.hzs.activity.wares.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.activity.base.param.ActivityParam;
import com.hzs.activity.base.param.GiftConfigParam;
import com.hzs.activity.recommend.param.AcRecommendParam;
import com.hzs.common.domain.activity.wares.AcWaresRuleConfig;
import com.hzs.common.domain.activity.wares.ext.AcWaresRuleConfigExt;
import com.hzs.system.sys.dto.ApprovalBusinessResultDTO;

import java.util.List;

/**
 * 商品买赠规则配置表 服务类
 *
 * @author hzs
 * @since 2023-04-20
 */
public interface IAcWaresRuleConfigService extends IService<AcWaresRuleConfig> {

    /*
     * @description: 查询买赠活动赠品配置根据条件
     * @author: sui q
     * @date: 2023/4/25 19:26
     * @param: null null
     **/
    List<AcWaresRuleConfigExt> queryWaresGiftConfigByCondition(GiftConfigParam giftConfigParam);

    /**
     * 删除
     *
     * @param pkId
     * @return
     */
    void removeWaresRuleConfig(Long pkId);

    /**
     * 修改信息
     *
     * @param activityParam
     */
    void updateWaresRuleConfig(ActivityParam activityParam);


    /**
     * 商品买赠规则配置表
     *
     * @param baseConfigId
     */
    void removeWaresGiftConfig(Long baseConfigId);

    /**
     * 商品赠送审批
     * @param recommendParam
     */
    Boolean onLinePetition(AcRecommendParam recommendParam);
    /**
     * 商品赠送 审核规则
     * @param approvalBusinessResultDTO
     * @return
     */
    String ApprovalAgree(ApprovalBusinessResultDTO approvalBusinessResultDTO);
    /**
     * 商品赠送 审核规则驳回
     * @param approvalBusinessResultDTO
     * @return
     */

    String ApprovalReject(ApprovalBusinessResultDTO approvalBusinessResultDTO);
}
