| | |
| | | package com.xcong.excoin.modules.member.dao;
|
| | |
|
| | | import org.springframework.transaction.annotation.Transactional;
|
| | | 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(Long memberId, String symbol);
|
| | | |
| | | 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);
|
| | | }
|