xiaoyong931011
2021-05-15 97bb5d54315b91b851d6934fb2bb98b80b7dc4f1
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
package com.xcong.excoin.modules.yunding.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xcong.excoin.modules.member.entity.MemberAccountMoneyChangeEntity;
import com.xcong.excoin.modules.member.entity.MemberEntity;
import com.xcong.excoin.modules.yunding.entity.BasicSettingEntity;
import com.xcong.excoin.modules.yunding.entity.YdOrderEntity;
import com.xcong.excoin.modules.yunding.entity.YdProductEntity;
import com.xcong.excoin.modules.yunding.vo.YdAgentOrderVo;
import com.xcong.excoin.modules.yunding.vo.YdMemberVo;
import org.apache.ibatis.annotations.Param;
 
import java.math.BigDecimal;
 
public interface BasicSettingMapper extends BaseMapper<BasicSettingEntity> {
 
    IPage<YdOrderEntity> getOrderList(Page<YdOrderEntity> page, @Param("record") YdOrderEntity ydOrderEntity);
 
    IPage<YdProductEntity> getYdProductList(Page<YdProductEntity> page, @Param("record") YdProductEntity ydProductEntity);
 
    IPage<YdMemberVo> getYdMemberList(Page<YdMemberVo> page, @Param("record")YdOrderEntity ydOrderEntity);
 
    int selectPowerByMemberIdAndState(@Param("memberId")long memberId, @Param("state")int orderStateReady);
 
    BigDecimal selectAmountByMemberId(@Param("memberId")long memberId,@Param("type")int type);
 
    BigDecimal selectChargeAmountByMemberIdAndStatus(@Param("memberId")long memberId, @Param("status")int status);
 
    BigDecimal selectWithdrawAmountByMemberIdAndStatusAndIsInside(@Param("memberId")long memberId,
                                                                  @Param("status")int status,
                                                                  @Param("isInside")String isInside);
 
    IPage<YdAgentOrderVo> getAgentOrderList(Page<YdOrderEntity> page, @Param("record")YdOrderEntity ydOrderEntity);
 
    BigDecimal selectAgentReturnByMemberId(@Param("memberId")long memberId);
 
    IPage<MemberAccountMoneyChangeEntity> seeAgentReturn(Page<MemberAccountMoneyChangeEntity> page, @Param("record") MemberEntity memberEntity);
 
    BigDecimal selectTotalProfitByMemberIdAndType(@Param("memberId")long memberId, @Param("type")int type);
 
    IPage<MemberAccountMoneyChangeEntity> seeReturn(Page<MemberAccountMoneyChangeEntity> page, @Param("record")MemberEntity memberEntity);
 
    IPage<YdOrderEntity> seeOrder(Page<YdOrderEntity> page,@Param("record") MemberEntity memberEntity);
 
    YdProductEntity getydProductById(@Param("id")long id);
}