package com.njcn.device.pq.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njcn.device.pq.pojo.param.TerminalMainQueryParam;
import com.njcn.device.pq.pojo.po.PqsLineWeight;
import com.njcn.device.pq.pojo.vo.PqsLineWeightVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wr
 * @since 2023-08-24
 */
public interface PqsLineWeightMapper extends BaseMapper<PqsLineWeight> {

    /**
     * @Description: 查询监测点权重
     * @param
     * @return: java.util.List<com.njcn.device.pq.pojo.vo.PqsLineWeightVo>
     * @Author: wr
     * @Date: 2023/8/24 10:45
     */
    Page<PqsLineWeightVo> selectWeight(Page page,@Param("param") TerminalMainQueryParam terminalMainQueryParam
                                       );

    /**
     * @Description: 根据区域/供电公司/终端等查询监测点id
     * @param param
     * @return: java.lang.String
     * @Author: wr
     * @Date: 2023/8/24 13:50
     */
    String getLineID( @Param("param") PqsLineWeightVo.WeightExcel param);


    /**
     * @Description: 批量导出查询列表
     * @param terminalMainQueryParam
     * @return: java.util.List<com.njcn.device.pq.pojo.vo.PqsLineWeightVo>
     * @Author: wr
     * @Date: 2023/8/25 9:15
     */
    List<PqsLineWeightVo.WeightExcel> selectWeights(@Param("param") TerminalMainQueryParam terminalMainQueryParam);
}
