package com.hzs.activity.recommend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.common.domain.activity.recommend.AcRepurSharRuleConfig;
import com.hzs.common.domain.activity.recommend.ext.AcRepurSharRuleConfigExt;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 复购均分配置 服务类
 * </p>
 *
 * @author hzs
 * @since 2023-05-04
 */
public interface IAcRepurSharRuleConfigService extends IService<AcRepurSharRuleConfig> {

    /**
     * 根据订单ID查询规则
     *
     * @param pkBaseId 活动ID
     * @return AcRepurSharRuleConfig
     */
    AcRepurSharRuleConfig selectAcRepurSharRuleConfigByBaseId(Long pkBaseId);


    /**
     * 根据条件删除规则配置
     * @param activityId 活动ID
     * @param pkModifyId 修改人ID
     * @return
     */
    Boolean deleteSharRuleConfigByActivityId(Long activityId, Long pkModifyId);

    /*
     * @description: 查询复购券均分收益
     * @author: sui q
     * @date: 2023/5/5 16:29
     * @param: null null
     **/
    List<AcRepurSharRuleConfigExt> queryRepurSharRuleConfig(Date startDate, Date endDate);

}
