package com.hdkj.lt.mq.mapper.fault;

import com.hdkj.lt.core.bizms.modle.po.FhzgDistTransformerCustomer;
import com.hdkj.lt.core.bizms.modle.po.fault.FaultAwaitTransferAreaResult;
import com.hdkj.lt.core.bizms.modle.po.plan.FhzgInfoBreakerSvgAfter;
import com.hdkj.lt.modle.dto.jsty.SwitchInfoDTO;
import com.hdkj.lt.mq.entity.dto.SwitchTreeNode;
import com.hdkj.lt.mq.entity.vo.FaultPowerCutVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Description
 * @Author wcx
 * @Date 2025/5/15 20:09
 * @Version 1.0
 */
@Mapper
public interface FaultAwaitTransferAreaResultMapper extends BaseMapper<FaultAwaitTransferAreaResult> {

    List<SwitchInfoDTO> getSwitchSectionInfo(String lineId, String startSwitchId, String linkSwitchId, List<String> endSwitchIds, List<String> switchTypes);

    List<FhzgDistTransformerCustomer> getTransformerCustomerInfo(List<String> trans, List<String> customers, LocalDateTime faultStartTime, LocalDateTime faultEndTime);

    FaultPowerCutVO selectFaultAndFaultTime(Long faultId);

    void saveBreakerSvgAfterBatch(List<FhzgInfoBreakerSvgAfter> breakerSvgAfterList);

    List<SwitchTreeNode> getBreakerSvgAfter(String feeder, Long faultId, List<String> deviceTypes);
}


