xiaoyong931011
2023-09-21 dc0516ac578f64dd31fea4d34443907a1e3c78be
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
package cc.mrbird.febs.dapp.mapper;
 
import cc.mrbird.febs.dapp.dto.MallGoodsQueryDto;
import cc.mrbird.febs.dapp.dto.MallOrderQueryDto;
import cc.mrbird.febs.dapp.dto.PackageRecordDto;
import cc.mrbird.febs.dapp.entity.DappMemberEntity;
import cc.mrbird.febs.dapp.entity.MallAddressInfo;
import cc.mrbird.febs.dapp.entity.MallOrderInfo;
import cc.mrbird.febs.dapp.soccer.entity.SoccerLeagues;
import cc.mrbird.febs.dapp.vo.*;
import cn.hutool.core.date.DateTime;
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.Date;
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);
 
    List<DappMemberEntity> selectAllMemberInfoByRefererId(@Param("inviteId")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);
 
    BigDecimal selectAllAchieveByRefId(@Param("inviteId")String inviteId);
 
    List<DappMemberEntity> selectMemberByNotAccountType(@Param("accountType")String type);
 
    List<DappMemberEntity> selectByNodetype();
 
    List<String> selectAddress();
 
    IPage<MallGoodsListVo> selectMallGoodsListQueryInPage( @Param("record")MallGoodsQueryDto queryDto, Page<MallGoodsListVo> page);
 
    IPage<MallOrderListVo> selectMallOrderListQueryInPage( @Param("record")MallOrderQueryDto queryDto, Page<MallOrderListVo> page);
 
    MallOrderListVo selectMallOrderListVoById(@Param("orderId")Long id);
 
    List<MallOrderItemVo> selectMallOrderItemVoByOrderId(@Param("orderId")Long id);
 
    MallGoodsListVo selectMallGoodsListVoById(@Param("goodsId")Long id);
 
    DappMemberEntity selectInviteLeft(@Param("inviteId")String inviteId);
 
    DappMemberEntity selectInviteRight(@Param("inviteId")String inviteId);
 
    List<DappMemberEntity> selectMemberByActiveStatus();
 
    BigDecimal selectAchieveRecordByInviteId(@Param("inviteId")String inviteId);
 
    List<DappMemberEntity> selectChildAgentList(@Param("inviteId")String inviteId, @Param("accountType")String accountType);
 
    DappMemberInfoVo selectDappMemberInfoVoByMemberId(@Param("memberId")long id);
 
    IPage<MallAddressInfo> selectAddressListInPage(@Param("record")MallGoodsQueryDto queryDto, Page<MallAddressInfo> page);
 
    Integer selectOrderCntByMemberIdAndStatus(@Param("memberId")Long id, @Param("status")int i);
 
    IPage<MallAddressInfo> selectShopAddressListInPage(@Param("record")MallGoodsQueryDto queryDto, Page<MallAddressInfo> page);
 
    int updateIsDefault(@Param("isDefault") Integer isDefault, @Param("memberId") Long memberId, @Param("id") Long id);
 
    void deleteByOrderId(@Param("orderId")Long id);
 
    MallAddressInfo selectAddressOneByMemberId(@Param("memberId")Long memberId);
 
    BigDecimal selectOrderAmountByTime(@Param("type") String type, @Param("date") Date date);
 
    Integer selectOrderCountByTime(@Param("type") String type, @Param("date") Date date);
 
    BigDecimal selectAccountChangeAfterAmountByTime(@Param("type") String type, @Param("date") Date date);
 
    List<PackageRecordVo> selectPackageRecordDayInPage(@Param("date") Date date);
 
    List<PackageRecordVo> selectPackageRecordMonthInPage(@Param("date") Date date);
 
    List<PackageRecordVo> selectPackageRecordWeekInPage(@Param("date") Date date);
 
    MallOrderInfo selectOrderByOrderNo(@Param("orderNo") String orderNo);
 
    IPage<SoccerLeagues> selectSoccerLeaguesInPage(@Param("record")SoccerLeagues soccerLeagues, Page<SoccerLeagues> page);
}