fix
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user