package com.njcn.process.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.harmonic.pojo.vo.ThsStrategyVo;
import com.njcn.process.pojo.param.SuperviseParam;
import com.njcn.process.pojo.param.StrategyParam;
import com.njcn.process.pojo.po.ThsWarnStrategy;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wr
 * @since 2023-03-10
 */
public interface ThsWarnStrategyMapper extends BaseMapper<ThsWarnStrategy> {

    /***
     * 预警单/告警单修改详细查询
     * @author wr
     * @date 2023-03-10 13:31
     * @param id
     * @return StrategyUpdateParam
     */
    StrategyParam.StrategyUpdateParam selectUpdateStrategy(@Param("id") String id);


    /***
     * 获取指标明细id
     * @author wr
     * @date 2023-03-10 13:46
     * @param id
     * @return List<String>
     */
    List<String> getStrategyDetail(@Param("id") String id);

    /***
     * 获取监测点标签id
     * @author wr
     * @date 2023-03-10 13:46
     * @param id
     * @return List<String>
     */
    List<String> getMonitorTagDetail(@Param("id") String id);


    /***
     * 获取监测点
     * @author wr
     * @date 2023-03-10 13:46
     * @param id
     * @return List<String>
     */
    List<String> getMonitorIds(@Param("id") String id);

    /**
     * 查询策略的集合
     */
    List<ThsStrategyVo> selectStrategyList(@Param("param") SuperviseParam superviseParam);

}
