This commit is contained in:
wangff
2025-11-20 17:57:37 +08:00
parent 052b0f368a
commit 300bcefa72

View File

@@ -326,7 +326,7 @@ public class WalletServiceImpl implements WalletService {
public AccountInfoVO getAccountInfo(AccountQueryRequest request) { public AccountInfoVO getAccountInfo(AccountQueryRequest request) {
String storeId = getStoreId(request); String storeId = getStoreId(request);
List<AccountInfoDTO> accountInfo = walletApiService.getAccountInfo(new OutStoreIdRequest(storeId)); List<AccountInfoDTO> accountInfo = walletApiService.getAccountInfo(new OutStoreIdRequest(storeId));
AccountInfoDTO accountInfoDTO = accountInfo.stream().filter(v -> v.getAccountNo().equals(request.getAccountNo())).findFirst().get(); AccountInfoDTO accountInfoDTO = accountInfo.stream().filter(v -> v.getAccountNo().equals(request.getAccountNo())).findFirst().orElse(null);
return BeanUtil.toBean(accountInfoDTO, AccountInfoVO.class); return BeanUtil.toBean(accountInfoDTO, AccountInfoVO.class);
} }