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.base.annotations.MybatisLikeInterceptorMethod;
import com.hdkj.lt.core.bizms.modle.dto.FhzgFaultAwaitTransferUsersCountDTO;
import com.hdkj.lt.core.bizms.modle.dto.FhzgFaultDistCustomerDTO;
import com.hdkj.lt.core.bizms.modle.po.fault.FaultAwaitTransferUsers;
import com.hdkj.lt.core.bizms.modle.vo.FhzgFaultAwaitTransferUsersVO;
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 FaultAwaitTransferUsersMapper extends BaseMapper<FaultAwaitTransferUsers> {

    /**
     *
     * @author luorui
     * @date 2025/5/19 16:31
     * @discription 根据停电计划ID，统计每个集合下的对应用户数量
     *
     **/
    List<FhzgFaultAwaitTransferUsersCountDTO> selectAwaitUserCountByFaultId(@Param("faultIdList") List<Long> faultIdLit);


    @MybatisLikeInterceptorMethod
    List<FhzgFaultAwaitTransferUsersVO> selectUserList(Page<FhzgFaultAwaitTransferUsersVO> page, @Param("params") FhzgFaultDistCustomerDTO dto);
}
