package com.sqx.modules.activity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sqx.common.utils.PageUtils;
import com.sqx.modules.activity.dto.ActivityPartRecordQueryDTO;
import com.sqx.modules.activity.entity.ActivityPartRecord;
import com.sqx.modules.activity.vo.ActivityPartRecordVO;
import com.sqx.modules.activity.vo.OrderSuitActivityVO;
import com.sqx.modules.order.entity.TbOrder;

/**
 * 活动参与记录
 * @author : codingliang
 * @date : 2024-6-24
 */
public interface ActivityPartRecordService extends IService<ActivityPartRecord> {

    PageUtils page(ActivityPartRecordQueryDTO queryDTO);

    /**
     * 根据订单和订单活动信息保存活动参与记录
     * @param order 订单信息
     * @param orderBestActivity 订单活动
     */
    void saveByOrderAndSuitActivityVO(TbOrder order, OrderSuitActivityVO orderBestActivity);

    ActivityPartRecordVO getVoById(Long recordId);

    /**
     * 根据订单id查询
     * @param orderId 订单id
     * @return 活动参与信息
     */
    ActivityPartRecord getByOrderId(Long orderId);
}
