package org.jeecg.modules.gijcj.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.gijcj.entity.BuZyGijcj_6Online;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * @Description: bu_zy_gijcj_6_online
 * @Author: jeecg-boot
 * @Date:   2026-01-23
 * @Version: V1.0
 */
public interface BuZyGijcj_6OnlineMapper extends BaseMapper<BuZyGijcj_6Online> {
    /**
     * 分页查询，使用自定义resultMap
     */
    List<BuZyGijcj_6Online> selectWithCustomFields(@Param("ew") com.baomidou.mybatisplus.core.conditions.Wrapper<BuZyGijcj_6Online> wrapper);
    
    /**
     * 按月份查询历史数据
     */
    <E extends IPage<BuZyGijcj_6Online>> E queryHistoryDataByMonth(E page, @Param("tableName") String tableName);
    
    /**
     * 按时间范围查询历史数据
     */
    <E extends IPage<BuZyGijcj_6Online>> E queryHistoryDataByTimeRange(E page, @Param("tableName") String tableName, @Param("startTime") String startTime, @Param("endTime") String endTime);
}