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

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.red.circle.framework.mybatis.dao.BaseDAO;
import com.red.circle.other.infra.database.rds.entity.team.BusinessDevelopmentTeam;
import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 商务拓展团队表 Mapper 接口.
 * </p>
 *
 * @author pengshigang
 * @since 2022-06-07
 */
public interface BusinessDevelopmentTeamDAO extends BaseDAO<BusinessDevelopmentTeam> {

  /**
   * 统计代理名下主播总目标.
   *
   * @param userId     bd用户id
   * @param dateNumber 统计月份日期
   */
  BigDecimal countAgentTotalTarget(@Param("userId") Long userId,
      @Param("dateNumber") Integer dateNumber);

  /**
   * bd下的金币代理(排除自己的)
   */
  Page<Long> pageRechargeAgency(@Param("userId") Long userId, @Param("page")Page page);
}
