From 6e43b3feb85818fafc4b07170e59f29ddb7565e9 Mon Sep 17 00:00:00 2001 From: "fengyu.wang" Date: Thu, 30 Jul 2020 22:05:16 +0800 Subject: [PATCH] bug fix --- .../java/com/blockchain/server/btc/mapper/BtcWalletMapper.java | 2 +- .../server/btc/service/impl/BtcWalletServiceImpl.java | 2 +- .../src/main/resources/mapper/BtcWalletMapper.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blockchain-server/blockchain-server-btc/src/main/java/com/blockchain/server/btc/mapper/BtcWalletMapper.java b/blockchain-server/blockchain-server-btc/src/main/java/com/blockchain/server/btc/mapper/BtcWalletMapper.java index 6e8c816..20f00dc 100644 --- a/blockchain-server/blockchain-server-btc/src/main/java/com/blockchain/server/btc/mapper/BtcWalletMapper.java +++ b/blockchain-server/blockchain-server-btc/src/main/java/com/blockchain/server/btc/mapper/BtcWalletMapper.java @@ -69,7 +69,7 @@ public interface BtcWalletMapper extends Mapper { */ List selectAllByUserOpenId(@Param("userOpenId") String userOpenId, @Param("walletType") String walletType); - List selectAll(@Param("userOpenId") String userOpenId); + List selectAllByOpenId(@Param("userOpenId") String userOpenId); /** * 用户充值修改钱包金额 diff --git a/blockchain-server/blockchain-server-btc/src/main/java/com/blockchain/server/btc/service/impl/BtcWalletServiceImpl.java b/blockchain-server/blockchain-server-btc/src/main/java/com/blockchain/server/btc/service/impl/BtcWalletServiceImpl.java index d739989..dd90fb4 100644 --- a/blockchain-server/blockchain-server-btc/src/main/java/com/blockchain/server/btc/service/impl/BtcWalletServiceImpl.java +++ b/blockchain-server/blockchain-server-btc/src/main/java/com/blockchain/server/btc/service/impl/BtcWalletServiceImpl.java @@ -104,7 +104,7 @@ public class BtcWalletServiceImpl implements BtcWalletService { @Override public List selectAllByUserOpenId(String userOpenId) { - return btcWalletMapper.selectAll(userOpenId); + return btcWalletMapper.selectAllByOpenId(userOpenId); } @Override diff --git a/blockchain-server/blockchain-server-btc/src/main/resources/mapper/BtcWalletMapper.xml b/blockchain-server/blockchain-server-btc/src/main/resources/mapper/BtcWalletMapper.xml index 4ac1428..39fa0bb 100644 --- a/blockchain-server/blockchain-server-btc/src/main/resources/mapper/BtcWalletMapper.xml +++ b/blockchain-server/blockchain-server-btc/src/main/resources/mapper/BtcWalletMapper.xml @@ -30,7 +30,7 @@ WHERE user_open_id = #{userOpenId} AND wallet_type = #{walletType} - SELECT * FROM WHERE user_open_id = #{userOpenId}