package com.hzs.activity.recommend.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.activity.recommend.AcRepurSharRuleConfig;
import com.hzs.common.domain.activity.recommend.ext.AcRepurSharRuleConfigExt;
import lombok.Data;
import org.apache.ibatis.annotations.Param;

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

/**
 * <p>
 * 复购均分配置 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2023-05-04
 */
public interface AcRepurSharRuleConfigMapper extends BaseMapper<AcRepurSharRuleConfig> {

    /**
     * 根据条件删除规则配置
     *
     * @param orderTypeList 订单类型
     * @param activityId    活动ID
     * @param pkModifyId    修改人ID
     * @return
     */
    Integer deleteSharRuleConfigByActivityId(@Param("orderTypeList") List<Integer> orderTypeList,
                                             @Param("activityId") Long activityId, @Param("pkModifyId") Long pkModifyId);

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

}
