xiaoyong931011
2022-11-18 4ccaaf3dccbd8ad40f093dab238f51d350f15a43
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package cc.mrbird.febs.dapp.mapper;
 
import cc.mrbird.febs.common.entity.FebsResponse;
import cc.mrbird.febs.dapp.dto.ApiMyTeammateInfoDto;
import cc.mrbird.febs.dapp.dto.TeamListDto;
import cc.mrbird.febs.dapp.entity.*;
import cc.mrbird.febs.dapp.vo.AdminMemberCoinWithdrawVo;
import cc.mrbird.febs.dapp.vo.AdminTeamInfoVo;
import cc.mrbird.febs.dapp.vo.ApiMyTeammateInfoListVo;
import cc.mrbird.febs.dapp.vo.TeamListVo;
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);
 
    BigDecimal selectChildHoldAmount(@Param("inviteId") String inviteId);
 
    IPage<TeamListVo> selectTeamListInPage(@Param("record") TeamListDto teamListDto, Page<TeamListDto> page);
 
    List<DappMemberEntity> selectMakerAddress();
 
    DappMemberEntity selectMemberInfoByUsername(@Param("username")String account);
 
    DappMemberEntity selectMemberInfoByUsernameAndPassword(@Param("username") String account,@Param("password")  String md5Pwd);
 
    DappMemberEntity selectMemberInfoByTouristMark(@Param("touristMark")String touristMark);
 
    DappMemberEntity selectRelationShipByInviteIdOutAndMemberId(@Param("id")Long id, @Param("inviteId")String inviteId);
 
    IPage<DappMemberEntity> selectMemberListInPage(@Param("record")DappMemberEntity member, Page<DappMemberEntity> page);
 
    void updateIsOnHook();
 
    IPage<ApiMyTeammateInfoListVo> selectMyTeammateInfoInPage(@Param("record")ApiMyTeammateInfoDto apiMyTeammateInfoDto, Page<ApiMyTeammateInfoListVo> page);
 
    void updateIdentity();
 
    List<DappMemberEntity> selectTotalAmountByRefererId(@Param("inviteId")String inviteId);
 
    void updateIdentityByMemberId(@Param("identity")String code, @Param("id")Long memberEntityId);
 
    List<DappMemberEntity> selectTotalAmountByRefererIdAndIdentity(@Param("inviteId")String inviteId, @Param("identity")String identity);
 
    IPage<AppVersion> getAppVersionListInPage(Page<AppVersion> page, AppVersion appVersion);
 
    IPage<MemberCoinChargeEntity> getChargeListInPage(Page<MemberCoinChargeEntity> page, @Param("record")MemberCoinChargeEntity memberCoinChargeEntity);
 
    List<DappMemberEntity> selectTotalMemberByRefererIdAndIdentity(@Param("inviteId")String inviteId);
 
    IPage<DappMessageEntity> selectMessageListInPage(@Param("record")DappMessageEntity dappMessageEntity, Page<DappMemberEntity> page);
 
    IPage<MemberCoinChargeEntity> getChargeListByDayInPage(Page<MemberCoinChargeEntity> page, @Param("record")MemberCoinChargeEntity memberCoinChargeEntity);
 
    IPage<AdminMemberCoinWithdrawVo> getWithDrawListByDayInPage(Page<AdminMemberCoinWithdrawVo> page,  @Param("record")MemberCoinWithdrawEntity memberCoinWithdrawEntity);
 
    IPage<AdminTeamInfoVo> findTeamInfoListInPage(Page<AdminTeamInfoVo> page, @Param("record")DappMemberEntity dappMemberEntity);
}