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}