package com.njcn.harmonic.mapper;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njcn.harmonic.pojo.po.day.RStatLimitRateDPO;
import com.njcn.harmonic.pojo.po.day.RStatLimitTargetDPO;
import com.njcn.harmonic.pojo.vo.MonitorOverLimitVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RStatLimitTargetMapper extends BaseMapper<RStatLimitTargetDPO> {

    Page<MonitorOverLimitVO> getSumLimitTargetPage(Page<MonitorOverLimitVO>p,
                                                 @Param("ids") List<String> lineIndexes,
                                                 @Param("startTime") DateTime startTime, @Param("endTime") DateTime endTime);

    /**
     *
     * @param list
     * @param startTime
     * @param endTime
     * @return
     */
    List<RStatLimitTargetDPO> getSumTargetList(@Param("ids") List<String> list,
                                               @Param("statTime") String startTime,
                                               @Param("endTime") String endTime);
}
