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.FhzgDistCustomerDTO;
import com.hdkj.lt.core.bizms.modle.dto.FhzgPlanAwaitTransferUsersCountDTO;
import com.hdkj.lt.core.bizms.modle.po.plan.FhzgPlanAwaitTransferUsers;
import com.hdkj.lt.core.bizms.modle.vo.FhzgAwaitTransferUsersVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 计划停电待转供用户信息表 Mapper接口
 *
 * @author zhousc
 * @since 2025-05-07
 */
@Mapper
public interface FhzgPlanAwaitTransferUsersMapper extends BaseMapper<FhzgPlanAwaitTransferUsers> {


    @MybatisLikeInterceptorMethod
    List<FhzgAwaitTransferUsersVO> selectUserList(Page<FhzgAwaitTransferUsersVO> page, @Param("params") FhzgDistCustomerDTO dto );


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

    FhzgPlanAwaitTransferUsersCountDTO selectAwaitUserCountAnduserLoads(@Param("planId") Long planId);
}
