From eeb68fc3ca75b5d05fe8aba2d76fb8964348bb6b Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Fri, 14 Jun 2024 09:49:11 +0800
Subject: [PATCH] 星级矩阵

---
 src/main/java/cc/mrbird/febs/dapp/mapper/DappFundFlowDao.java |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/dapp/mapper/DappFundFlowDao.java b/src/main/java/cc/mrbird/febs/dapp/mapper/DappFundFlowDao.java
index 8f3ca2e..dfddff1 100644
--- a/src/main/java/cc/mrbird/febs/dapp/mapper/DappFundFlowDao.java
+++ b/src/main/java/cc/mrbird/febs/dapp/mapper/DappFundFlowDao.java
@@ -6,11 +6,27 @@
 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);
 }

--
Gitblit v1.9.1