package com.hdkj.lt.si.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hdkj.lt.core.bizms.modle.po.fault.FhzgDistLineSwitchSection;
import com.hdkj.lt.modle.dto.svg.AppendDeviceDTO;
import com.hdkj.lt.modle.dto.svg.AppendSwitchDTO;
import com.hdkj.lt.modle.po.FhzgDistMappingFilePO;
import com.hdkj.lt.modle.vo.svg.FeederBaseVO;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Author lihao
 * @Date 2025/7/01 20:09
 * @Version 1.0
 */
@Mapper
public interface DistLineSwitchSectionMapper extends BaseMapper<FhzgDistLineSwitchSection> {

    List<Map<String,Object>> getSwitchSection(@Param("feederId") String feederId, @Param("psrIds") List<String> psrIds, @Param("kgPsrType") List<String> kgPsrType);

    Long getSwitchCount(@Param("feederId") String feeder, @Param("startId") String startId, @Param("endIds") List<String> endIds, @Param("kgPsrType") List<String> kgPsrType);

    Map<String,Object> getTransformerCount(@Param("feederId") String feeder, @Param("startId") String startId, @Param("endIds") List<String> endIds, @Param("psrType") List<String> psrType, @Param("pbPsrType") List<String> pbPsrType);

    void deleteDistLineSwitchSectionShowByLineId(String objId);

    void saveDistLineSwitchSectionShow(String objId, String feederId, List<String> kgType, List<String> pbType, List<String> psrType);

    List<AppendDeviceDTO> getLineSwitchSectionDetails(String objId, List<String> kgPsrTypes);

    void batchUpdateFileIds(List<FhzgDistLineSwitchSection> switchSectionList);

    void saveDistDynamicSvgParameter(String objId, String objType, String switchId, String parameterInfo, String callResult);
}
