package com.yuchen.saas.park.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuchen.saas.park.api.entity.park.PmgBatPowerData;
import com.yuchen.saas.park.api.vo.park.energy.TotalRankingVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 颜艺波
 * @date 2022/6/28 16:54
 * @Description
 */
public interface PmgBatPowerDataMapper extends BaseMapper<PmgBatPowerData> {

    /**
     * 耗电量排名
     * @param parkId
     * @return
     */
    List<TotalRankingVO> totalRanking(@Param("parkId") Long parkId);
}
