package com.njcn.device.pq.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
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.springframework.core.io.InputStreamResource;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wr
 * @since 2023-08-24
 */
public interface IPqsLineWeightService extends IService<PqsLineWeight> {

    /**
     * @Description: 监测点评分权重修改
     * @param lineWeight
     * @return: java.lang.Boolean
     * @Author: wr
     * @Date: 2023/8/24 10:16
     */
    Boolean addLineWeight(PqsLineWeight lineWeight);

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

   /**
    * @Description: 导出模板
    * @param
    * @return: org.springframework.core.io.InputStreamResource
    * @Author: wr
    * @Date: 2023/8/24 11:47
    */
    InputStreamResource exportTemplate() throws IOException;

    /**
     * @Description: 批量导入监测点权重
     * @param file
     * @param response
     * @Author: wr
     * @Date: 2023/8/24 15:00
     */
    void batchWeight(MultipartFile file, HttpServletResponse response);

    /**
     * @Description: 导出模板
     * @param
     * @Author: wr
     * @Date: 2023/8/24 11:47
     */
    void exportWeight(TerminalMainQueryParam terminalMainQueryParam) throws IOException;
}
