package com.hdkj.lt.bf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hdkj.lt.bf.entity.dto.FhzgFaultTransferSchemeSwitchingSequenceDTO;
import com.hdkj.lt.bf.entity.dto.FhzgPlanTransferSchemeSwitchingSequenceCountDTO;
import com.hdkj.lt.core.bizms.modle.po.fault.FaultTransferScheme;
import com.hdkj.lt.core.bizms.modle.po.fault.FaultTransferSchemeSwitchingSequence;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 故障停电转供方案开关动作顺序信息表 Mapper 接口
 * </p>
 *
 * @author luorui
 * @since 2025-05-29
 */
@Mapper
public interface FaultTransferSchemeSwitchingSequenceMapper extends BaseMapper<FaultTransferSchemeSwitchingSequence> {


    FhzgPlanTransferSchemeSwitchingSequenceCountDTO  countSwitch(@Param("id") Long id);

    /**
     *
     * @author luorui
     * @date 2025/5/17 17:38
     * @discription 查询某个方案下的开关安全校验通过和不通过的数量
     *
     **/
    List<FhzgFaultTransferSchemeSwitchingSequenceDTO> getTransferSchemeSwitchingSequenceBySchemeId(@Param("id") Long id);

    /**
     * @author luorui
     * @date 2025/5/16 15:51
     * @discription 分页查询
     *
     **/
    Page<FhzgFaultTransferSchemeSwitchingSequenceDTO> getTransferSchemeSwitchingSequenceBySchemeIdPage(Page<FaultTransferScheme> page,@Param("params") FaultTransferScheme faultTransferScheme);
}
