KKSU
2024-07-08 f0922bc416fad3aa6121ffdbdd217bffb94f518f
src/main/java/cc/mrbird/febs/dapp/mapper/DappFundFlowDao.java
@@ -6,8 +6,9 @@
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
public interface DappFundFlowDao extends BaseMapper<DappFundFlowEntity> {
@@ -15,5 +16,19 @@
    List<DappFundFlowEntity> selectListForMemberAndDay(@Param("memberId") Long memberId, @Param("type") int type);
    DappFundFlowEntity selectMineFundFlowByMemberIdAndTime(@Param("time") Long memberId, @Param("time") Date time);
    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);
    BigDecimal selectSumRunPerkByMemberId(@Param("memberId") Long memberId);
    DappFundFlowEntity selectNewestFundFlow(@Param("memberId") Long memberId, @Param("type") Integer type);
}