package com.ruoyi.cai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.cai.dto.admin.incomeStatis.VipOrderCountDTO;
import com.ruoyi.cai.domain.VipOrder;
import com.ruoyi.cai.dto.admin.vo.VipOrderAdminVo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

/**
 * VIP订单Mapper接口
 *
 * @author 77
 * @date 2024-01-03
 */
public interface VipOrderMapper extends BaseMapper<VipOrder> {

    Page<VipOrderAdminVo> pageAdmin(@Param("build") Page<Object> build, @Param("bo") VipOrderAdminVo bo);

    VipOrderCountDTO incomeStatistics(@Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);
}
