package com.pqs9900.mapper.linedata;

import com.njcn.pojo.pointInfo.LineLedger;
import com.pqs9900.pojo.linedata.MarkExcel;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * system
 * 监测点打分
 * @author cdf
 * @date 2021/10/27
 */
public interface LineMarkMapper {

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

    /**
     *
     * @author cdf
     * @date 2021/11/2
     */
    Integer singleOperate(@Param("lineIndex") Integer lineIndex, @Param("lineGrade")String lineGrade);

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

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


    /**
     * 修改监测点评级
     * @author cdf
     * @date 2021/10/28
     */
    Integer updateMark(@Param("lineGrade") String lineGrade,@Param("lineIndex") Integer lineIndex);

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

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

    List<Integer> getStopLineIds();

}
