From ab1564009921f3c6ce006b3aa351191222fac200 Mon Sep 17 00:00:00 2001 From: ronger Date: Wed, 30 Jun 2021 17:34:43 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E7=AD=94=E9=A2=98=E5=A5=96=E5=8A=B1?= =?UTF-8?q?=E5=8F=91=E6=94=BE=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/rymcu/forest/service/BankAccountService.java | 7 +++++++ .../rymcu/forest/service/impl/BankAccountServiceImpl.java | 7 +++++++ .../forest/service/impl/TransactionRecordServiceImpl.java | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/rymcu/forest/service/BankAccountService.java b/src/main/java/com/rymcu/forest/service/BankAccountService.java index f8b1b54..d7e2d10 100644 --- a/src/main/java/com/rymcu/forest/service/BankAccountService.java +++ b/src/main/java/com/rymcu/forest/service/BankAccountService.java @@ -38,4 +38,11 @@ public interface BankAccountService extends Service { * @return */ BankAccount findSystemBankAccount(); + + /** + * 查询账号信息 + * @param formBankAccount + * @return + */ + BankAccount findInfoByBankAccount(String formBankAccount); } diff --git a/src/main/java/com/rymcu/forest/service/impl/BankAccountServiceImpl.java b/src/main/java/com/rymcu/forest/service/impl/BankAccountServiceImpl.java index 370b7a9..da34cca 100644 --- a/src/main/java/com/rymcu/forest/service/impl/BankAccountServiceImpl.java +++ b/src/main/java/com/rymcu/forest/service/impl/BankAccountServiceImpl.java @@ -74,6 +74,13 @@ public class BankAccountServiceImpl extends AbstractService impleme return bankAccountMapper.selectOne(bankAccount); } + @Override + public BankAccount findInfoByBankAccount(String bankAccount) { + BankAccount searchBankAccount = new BankAccount(); + searchBankAccount.setBankAccount(bankAccount); + return bankAccountMapper.selectOne(searchBankAccount); + } + private String nextBankAccount() { String bankAccount = "600000001"; String maxBankAccount = bankAccountMapper.selectMaxBankAccount(); diff --git a/src/main/java/com/rymcu/forest/service/impl/TransactionRecordServiceImpl.java b/src/main/java/com/rymcu/forest/service/impl/TransactionRecordServiceImpl.java index eaef498..c0a2167 100644 --- a/src/main/java/com/rymcu/forest/service/impl/TransactionRecordServiceImpl.java +++ b/src/main/java/com/rymcu/forest/service/impl/TransactionRecordServiceImpl.java @@ -136,7 +136,7 @@ public class TransactionRecordServiceImpl extends AbstractService 0) { return true;