package com.njcn.device.pq.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.njcn.device.pq.pojo.bo.excel.LineMark;
import com.njcn.device.pq.pojo.param.TerminalMainQueryParam;
import com.njcn.device.pq.pojo.po.LineDetail;
import com.njcn.device.pq.pojo.vo.LineMarkVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * pqs
 * 监测点评分
 * @author cdf
 * @date 2022/5/10
 */
public interface LineMarkService {


    /**
     * 批量导入监测点评分
     * @author cdf
     * @date 2022/5/10
     */
    String batchExport(MultipartFile file, HttpServletResponse response);

    /**
     * 获取监测点台账
     * @author cdf
     * @date 2022/5/10
     */
    IPage<LineMarkVO> getLineMark(TerminalMainQueryParam terminalMainQueryParam);

    List<LineMark> exportLineMark(TerminalMainQueryParam terminalMainQueryParam);

    /**
     * 单个新增或修改监测点等级
     * @author cdf
     * @date 2021/11/2
     */
    boolean singleOperate(String id, String lineGrade);

    /**
     * 通过监测点id获取监测点等级
     * @author cdf
     * @date 2022/5/11
     */
    LineDetail getLineGradeById(String id);
}
