diff --git a/src/main/java/com/rymcu/forest/lucene/util/PortfolioIndexUtil.java b/src/main/java/com/rymcu/forest/lucene/util/PortfolioIndexUtil.java index ac80e47..72e6589 100644 --- a/src/main/java/com/rymcu/forest/lucene/util/PortfolioIndexUtil.java +++ b/src/main/java/com/rymcu/forest/lucene/util/PortfolioIndexUtil.java @@ -2,7 +2,6 @@ package com.rymcu.forest.lucene.util; import cn.hutool.core.io.FileUtil; import cn.hutool.core.util.StrUtil; -import com.rymcu.forest.lucene.model.ArticleLucene; import com.rymcu.forest.lucene.model.PortfolioLucene; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; 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 0c96c82..7bd4ba5 100644 --- a/src/main/java/com/rymcu/forest/service/impl/BankAccountServiceImpl.java +++ b/src/main/java/com/rymcu/forest/service/impl/BankAccountServiceImpl.java @@ -26,8 +26,6 @@ import java.util.Objects; @Service public class BankAccountServiceImpl extends AbstractService implements BankAccountService { - private static String DEFAULT_ACCOUNT_TYPE = "0"; - @Resource BankAccountMapper bankAccountMapper; @Resource @@ -35,15 +33,15 @@ public class BankAccountServiceImpl extends AbstractService impleme @Override public List findBankAccounts(BankAccountSearchDTO bankAccountSearchDTO) { - List bankAccounts = bankAccountMapper.selectBankAccounts(bankAccountSearchDTO.getBankName(), bankAccountSearchDTO.getAccountOwnerName(), bankAccountSearchDTO.getBankAccount()); - return bankAccounts; + return bankAccountMapper.selectBankAccounts(bankAccountSearchDTO.getBankName(), bankAccountSearchDTO.getAccountOwnerName(), bankAccountSearchDTO.getBankAccount()); } @Override public BankAccountDTO findBankAccountByIdUser(Integer idUser) { BankAccount bankAccount = new BankAccount(); bankAccount.setAccountOwner(idUser); - bankAccount.setAccountType(DEFAULT_ACCOUNT_TYPE); + String defaultAccountType = "0"; + bankAccount.setAccountType(defaultAccountType); List bankAccounts = bankAccountMapper.select(bankAccount); BankAccountDTO bankAccountDTO; if (Objects.nonNull(bankAccounts) && bankAccounts.size() > 0) { @@ -68,8 +66,7 @@ public class BankAccountServiceImpl extends AbstractService impleme startDate = LocalDateTimeUtil.format(now.minus(30, ChronoUnit.DAYS), "yyyy-MM-dd"); } // 查询交易记录 - List records = transactionRecordService.findTransactionRecords(bankAccount, startDate, endDate); - return records; + return transactionRecordService.findTransactionRecords(bankAccount, startDate, endDate); } @Override