xiaoyong931011
2023-05-26 ec95da083dc783b7d7ca80b0a65665e9b60a037f
src/main/java/cc/mrbird/febs/dapp/mapper/DappMemberDao.java
@@ -1,6 +1,8 @@
package cc.mrbird.febs.dapp.mapper;
import cc.mrbird.febs.dapp.entity.DappMemberEntity;
import cc.mrbird.febs.dapp.vo.AdminTeamInfoVo;
import cc.mrbird.febs.dapp.vo.DappMemberInfoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
@@ -50,4 +52,23 @@
    List<DappMemberEntity> selectMemberInfoByRefererId(@Param("refererId")String inviteId);
    Integer selectCountByAccountTypeAndRefererId(@Param("accountType")String code, @Param("refererId")String inviteId);
    IPage<AdminTeamInfoVo> findTeamInfoListInPage(Page<AdminTeamInfoVo> page, @Param("record")DappMemberEntity dappMemberEntity);
    DappMemberInfoVo selectByMemberId(@Param("id")Long id);
    List<DappMemberEntity> selectByInviteIds(@Param("list")List<String> referrerIdList);
    /**
     * 获取级别为Type,且直推中有type级别的用户信息
     * @param type
     * @return
     */
    List<DappMemberEntity> selectMemberByAccountTypeAnd(@Param("accountType")String type);
    List<DappMemberEntity> selectChildAgentListByAccountType(@Param("inviteId") String inviteId, @Param("accountType")String accountType);
    BigDecimal selectAllAchieveByInviteId(@Param("inviteId")String inviteId);
    List<DappMemberEntity> selectMemberByNotAccountType(@Param("accountType")String type);
}