package com.red.circle.other.infra.database.rds.dao.user.user;

import com.red.circle.framework.mybatis.dao.BaseDAO;
import com.red.circle.other.infra.database.rds.entity.user.user.UserInviteUser;
import com.red.circle.other.inner.model.cmd.team.bd.BdTeamWorkStatisticsQryCmd;
import com.red.circle.other.inner.model.dto.user.UserInviteUserCountDTO;
import java.util.List;
import java.util.Set;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 邀请用户充值佣金与数量累计 Mapper 接口.
 * </p>
 *
 * @author pengshigang
 * @since 2022-05-24
 */
public interface UserInviteUserDAO extends BaseDAO<UserInviteUser> {

  /**
   * 获取bd邀请的人数
   * @param qryCmd
   * @param userIds
   * @return
   */
  List<UserInviteUserCountDTO> listInviteStatisticsByUserIds(
      @Param("qryCmd") BdTeamWorkStatisticsQryCmd qryCmd, @Param("userIds") Set<Long> userIds);
}
