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;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
|
/**
|
* @author
|
* @date 2022-03-17
|
**/
|
public interface DappMemberDao extends BaseMapper<DappMemberEntity> {
|
|
DappMemberEntity selectByAddress(@Param("address") String address, @Param("chain") String chain);
|
|
DappMemberEntity selectMemberInfoByInviteId(@Param("inviteId") String inviteId);
|
|
IPage<DappMemberEntity> selectInPage(@Param("record") DappMemberEntity member, Page<DappMemberEntity> page);
|
|
List<DappMemberEntity> selectAllMemberForInCome();
|
|
List<DappMemberEntity> selectAgentMemberList(@Param("list") List<String> inviteIds, @Param("size") Integer size);
|
|
List<DappMemberEntity> selectParentsList(@Param("list") List<String> inviteIds, @Param("size") Integer size);
|
|
BigDecimal selectAllBalance(@Param("accountType") String accountType);
|
|
List<DappMemberEntity> selectMemberByAccountType(@Param("accountType") String accountType);
|
|
List<DappMemberEntity> selectChildMemberDirectOrNot(@Param("inviteId") String inviteId, @Param("type") Integer type, @Param("status") Integer status);
|
|
BigDecimal selectChildHoldAmount(@Param("inviteId") String inviteId);
|
|
List<DappMemberEntity> selectMakerAddress();
|
|
int updateMemberActive();
|
|
DappMemberEntity selectNewestDirectMember(@Param("inviteId") String inviteId);
|
|
List<DappMemberEntity> selectMemberListNeedProfit();
|
|
void updateMemberAccountType(@Param("accountType")String code, @Param("id")Long id);
|
|
void updateMemberActiveStatus(@Param("accountStatus")int i, @Param("id")Long id);
|
|
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);
|
}
|