From 36be00e0f3cbe0d559c646fd2977e6e3a74aa6f9 Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Mon, 30 Sep 2024 16:57:22 +0800 Subject: [PATCH] Merge branch 'bea' of http://120.27.238.55:7000/r/exchange into bea --- src/main/java/com/xcong/excoin/modules/member/dao/MemberWalletContractDao.java | 29 ++++++++++++++++++++++------- 1 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/member/dao/MemberWalletContractDao.java b/src/main/java/com/xcong/excoin/modules/member/dao/MemberWalletContractDao.java index 0ad4586..e12db7e 100644 --- a/src/main/java/com/xcong/excoin/modules/member/dao/MemberWalletContractDao.java +++ b/src/main/java/com/xcong/excoin/modules/member/dao/MemberWalletContractDao.java @@ -1,7 +1,22 @@ -package com.xcong.excoin.modules.member.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.xcong.excoin.modules.member.entity.MemberWalletContractEntity; - -public interface MemberWalletContractDao extends BaseMapper<MemberWalletContractEntity> { -} +package com.xcong.excoin.modules.member.dao; + +import org.apache.ibatis.annotations.Param; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.xcong.excoin.modules.member.entity.MemberWalletContractEntity; + +import java.math.BigDecimal; + +public interface MemberWalletContractDao extends BaseMapper<MemberWalletContractEntity> { + + MemberWalletContractEntity findWalletContractByMemberIdAndSymbol(@Param("memberId")Long memberId, @Param("symbol")String symbol); + + /** + * 增减合约钱包(负数为减) + * @param availableBalance + * @param totalBalance + * @param frozenBalance + * @param id + */ + void increaseWalletContractBalanceById(@Param("availableBalance") BigDecimal availableBalance,@Param("totalBalance") BigDecimal totalBalance,@Param("frozenBalance") BigDecimal frozenBalance,@Param("id") Long id); +} -- Gitblit v1.9.1