package com.hzs.activity.recommend.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.activity.recommend.AcRecomUpgradeRecord;
import com.hzs.common.domain.activity.recommend.AcRecomUpgradeRecordExt;

import java.util.List;

/**
 * <p>
 * 推荐升级业务表 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2023-04-27
 */
public interface AcRecomUpgradeRecordMapper extends BaseMapper<AcRecomUpgradeRecord> {

    /**
     * 查询活动时间段内撤单记录
     *
     * @param upgradeRecord 推荐升级业务表
     * @return AcRecomUpgradeRecord
     */
    AcRecomUpgradeRecord selectUpgradeRecordByOrderId(AcRecomUpgradeRecordExt upgradeRecord);

    /**
     * 查询推荐的人数 （20230913修改为只要符合升级条件就升级，不考虑那个活动）
     *
     * @param upgradeRecord 推荐升级业务表
     * @return Integer
     */
    List<Long> selectRecommendNumber(AcRecomUpgradeRecordExt upgradeRecord);

}
