package com.njcn.device.pq.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njcn.device.pq.pojo.bo.excel.LineMark;
import com.njcn.device.pq.pojo.vo.LineMarkVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * pqs
 *
 * @author cdf
 * @date 2022/5/10
 */
public interface LineMarkMapper {
    /**
     * 获取监测点台账
     * @author cdf
     * @date 2021/10/27
     */
    Page<LineMarkVO> getLineMark(IPage<LineMarkVO> page, @Param("comFlag")Integer comFlag, @Param("lineGrade")String lineGrade, @Param("searchValue")String searchValue);

    List<LineMark> exportLineMark(@Param("comFlag")Integer comFlag, @Param("lineGrade")String lineGrade, @Param("searchValue")String searchValue);

    /**
     * 修改监测点评级
     * @author cdf
     * @date 2021/11/2
     */
    boolean singleOperate(@Param("lineIndex") String lineIndex, @Param("lineGrade")String lineGrade);

    /**
     * 获取监测点评级
     * @author cdf
     * @date 2021/11/2
     */
    LineMarkVO getLineGrade(@Param("lineIndex")Integer lineIndex);

    /**
     *
     * @author cdf
     * @date 2021/10/28
     */
    LineMarkVO getLineMarkData(@Param("gdName")String gdName,@Param("subName")String subName,@Param("devName")String devName,@Param("lineName")String lineName);



    /**
     * 批量修改监测点评级
     * @author cdf
     * @date 2021/10/29
     */
    Integer batchUpdateForLine(@Param("list") List<LineMark> list);
}
