KKSU
2024-06-14 8ee5e148287a2b7105ab2baaaec2edc83af6ec36
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
package cc.mrbird.febs.dapp.mapper;
 
import cc.mrbird.febs.dapp.entity.DappFundFlowEntity;
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;
import java.util.Map;
 
public interface DappFundFlowDao extends BaseMapper<DappFundFlowEntity> {
 
    IPage<DappFundFlowEntity> selectInPage(Page<DappFundFlowEntity> page, @Param("record") DappFundFlowEntity dappFundFlowEntity);
 
    List<DappFundFlowEntity> selectListForMemberAndDay(@Param("memberId") Long memberId, @Param("type") int type);
 
    DappFundFlowEntity selectByFromHash(@Param("txHash") String txHash, @Param("status") Integer status);
 
    DappFundFlowEntity selectByFromHashAndAndMemberId(@Param("txHash") String txHash, @Param("status") Integer status,@Param("memberId") Long memberId);
 
    List<DappFundFlowEntity> selectFundFlowListByAddress(@Param("address") String address, @Param("status") Integer status);
 
    Map<String, BigDecimal> selectAmountTotalByType(@Param("memberId") Long memberId);
 
    BigDecimal selectProfitAmountByMemberId(@Param("memberId") Long memberId);
 
    BigDecimal selectSumAmountByMemberIdAndType(@Param("memberId") Long memberId, @Param("type") Integer type);
 
    DappFundFlowEntity selectNewestFundFlow(@Param("memberId") Long memberId, @Param("type") Integer type);
}