package com.pqs9900.mapper.linedata;

import com.njcn.pojo.pointInfo.LineLedger;
import com.pqs9900.pojo.linedata.LineMarkWeight;
import com.pqs9900.pojo.linedata.LineMarkWeightVo;
import com.pqs9900.pojo.linedata.MarkWeightExcel;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * system
 * 监测点打分
 * @author cdf
 * @date 2021/10/27
 */
public interface LineMarkWeightMapper extends BaseMapper<LineMarkWeight> {

    /**
     * 获取监测点台账
     * @author cdf
     * @date 2021/10/27
     */
    List<LineMarkWeightVo> getLineMarkWeight(@Param("devFalg")Integer devFalg, @Param("lineGrade")Integer lineGrade);

    /**
     *
     * @author cdf
     * @date 2021/11/2
     */
    Integer singleOperate(@Param("item") LineMarkWeight item);

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

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



    /**
     * 批量修改监测点评分权重
     * @author cdf
     * @date 2021/10/29
     */
    Integer batchAddLineWeight(@Param("list") List<MarkWeightExcel> list);

    /**
     * 批量删除监测点评分权重
     * @author cdf
     * @date 2023/8/16
     */
    Integer batchDelLineWeight(@Param("lineIds")List<Integer> lineIds);

    /**
     * 批量修改装置的前置
     * @author cdf
     * @date 2021/10/29
     */
    Integer batchUpdateNode(@Param("list")List<MarkWeightExcel> list);

    List<Integer> getStopLineIds();

}
