package com.liquidnet.service.goblin.mapper;

import com.liquidnet.service.goblin.entity.GoblinSqbOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 收钱吧订单 Mapper 接口
 * </p>
 *
 * @author liquidnet
 * @since 2025-01-01
 */
public interface GoblinSqbOrderMapper extends BaseMapper<GoblinSqbOrder> {

    /**
     * 联表过滤候选：未核销 + 有演出关联，且满足其一：
     * 主单已支付(2)+演出已结束，或主单退款中(61)+进入退款中已超 8 小时；可选按演出 id 缩小范围
     */
    List<GoblinSqbOrder> selectAutoRefundCandidates(@Param("performancesId") String performancesId);
}
