package com.zsElectric.boot.charging.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zsElectric.boot.charging.entity.ThirdPartyPolicyInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 第三方价格策略明细Mapper接口
 *
 * @author system
 * @since 2025-12-12
 */
@Mapper
public interface ThirdPartyPolicyInfoMapper extends BaseMapper<ThirdPartyPolicyInfo> {
    
    /**
     * 根据stationInfoId和startTime查询电价和服务费
     *
     * @param stationInfoId 站点信息ID
     * @param startTime     时段开始时间
     * @return 价格策略明细(包含elec_price和service_price)
     */
    ThirdPartyPolicyInfo selectElecAndServicePriceByStation(@Param("stationInfoId") Long stationInfoId,
                                                             @Param("startTime") String startTime);
}
