package com.njcn.gather.script.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.njcn.gather.script.pojo.po.PqScript;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author caozehui
 * @date 2024-11-18
 */
public interface PqScriptMapper extends MPJBaseMapper<PqScript> {

    /**
     * 获取检测脚本信息(先获取检测脚本类型是否相对值  true相对值 false绝对值（相对值要乘额定值,绝对值不需要处理))
     *
     * @param scriptId
     * @return: com.njcn.gather.device.script.pojo.po.PqScript
     * @Author: wr
     * @Date: 2024/12/16 18:08
     */
    Boolean selectScriptIsValueType(@Param("scriptId") String scriptId);

    /**
     * 根据脚本id获取绑定的计划数量
     *
     * @param scriptIds
     * @return
     */
    Integer getBoundCountByScriptIds(@Param("scriptIds") List<String> scriptIds);
}

