package com.zsElectric.boot.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zsElectric.boot.business.model.entity.PolicyFee;
import com.zsElectric.boot.business.model.vo.TimePeriodPriceVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 策略费用Mapper接口
 *
 * @author system
 * @since 2025-12-15
 */
@Mapper
public interface PolicyFeeMapper extends BaseMapper<PolicyFee> {

    /**
     * 查询时段价格列表
     *
     * @param stationId 站点ID
     * @param salesType 销售类型(0-平台 1-企业 2-渠道方)
     * @param firmId 企业ID(销售类型为1时必传)
     * @param thirdPartyId 渠道方ID(销售类型为2时必传)
     * @return 时段价格列表
     */
    List<TimePeriodPriceVO> selectTimePeriodPriceList(
            @Param("stationId") Long stationId,
            @Param("salesType") Integer salesType,
            @Param("firmId") Long firmId,
            @Param("thirdPartyId") Long thirdPartyId
    );
}
