package com.yc.ship.module.trade.dal.mysql.report;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yc.ship.framework.mybatis.core.mapper.BaseMapperX;
import com.yc.ship.module.trade.controller.admin.report.vo.PrepaidRechargeLedgerPageReqVO;
import com.yc.ship.module.trade.controller.admin.report.vo.PrepaidRechargeLedgerRespVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 预存款充值流水 Mapper
 *
 * @author 管理员
 */
@Mapper
public interface PrepaidRechargeLedgerMapper extends BaseMapperX<PrepaidRechargeLedgerRespVO> {

    /**
     * 分页查询预存款充值流水
     *
     * @param page 分页参数
     * @param vo   查询条件
     * @return 分页结果
     */
    IPage<PrepaidRechargeLedgerRespVO> selectPrepaidRechargeLedgerPage(
            IPage<PrepaidRechargeLedgerRespVO> page, @Param("vo") PrepaidRechargeLedgerPageReqVO vo);

    /**
     * 导出查询预存款充值流水（不分页，用于 Excel 导出）
     *
     * @param vo 查询条件
     * @return 数据列表
     */
    List<PrepaidRechargeLedgerRespVO> selectPrepaidRechargeLedgerExportList(@Param("vo") PrepaidRechargeLedgerPageReqVO vo);

}
