package com.hdkj.lt.bf.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hdkj.lt.bf.entity.dto.FhzgPlanTransferSchemeSwitchingSequenceCountDTO;
import com.hdkj.lt.bf.entity.dto.FhzgPlanTransferSchemeSwitchingSequenceDTO;
import com.hdkj.lt.core.bizms.modle.po.plan.FhzgPlanTransferScheme;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author luorui
 * @date 2025/5/16 15:48
 */
@Mapper
public interface FhzgPlanTransferSchemeSwitchingSequenceMapper {


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


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

    /**
     *
     * @author luorui
     * @date 2025/5/17 17:38
     * @discription 统计某个方案的开关动作次数和非自动开关的动作次数
     *
     **/
    FhzgPlanTransferSchemeSwitchingSequenceCountDTO countSwitch(@Param("id") Long id);
}
