package com.hdkj.lt.bf.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hdkj.lt.bf.mapper.FhzgPlanAwaitTransferSwitchSectionMapper;
import com.hdkj.lt.bf.service.FhzgPlanAwaitTransferSwitchSectionService;
import com.hdkj.lt.core.bizms.modle.dto.FhzgDistCustomerDTO;
import com.hdkj.lt.core.bizms.modle.po.plan.FhzgPlanAwaitTransferSwitchSection;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 计划停电待转供开关段信息表 服务实现类
 *
 * @author zhousc
 * @since 2025-05-07
 */
@Service
public class FhzgPlanAwaitTransferSwitchSectionServiceImpl extends ServiceImpl<FhzgPlanAwaitTransferSwitchSectionMapper, FhzgPlanAwaitTransferSwitchSection> implements FhzgPlanAwaitTransferSwitchSectionService {

    @Override
    public Page<FhzgPlanAwaitTransferSwitchSection> getSwitchSectionList(FhzgDistCustomerDTO dto) {
        Page<FhzgPlanAwaitTransferSwitchSection> page = new Page<>();
        page.setCurrent(dto.getPageNum());
        page.setSize(dto.getPageSize());
        List<FhzgPlanAwaitTransferSwitchSection> list = baseMapper.selectSwitchSectionList(page, dto);
        return page.setRecords(list);
    }
}
