From ad95848c2c52108908b9faa2a60bad12cc4b5510 Mon Sep 17 00:00:00 2001 From: vpckiet Date: Thu, 22 May 2025 14:00:18 +0700 Subject: [PATCH] update ipo check --- src/main/java/cn/stock/market/infrastructure/job/Scraper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/stock/market/infrastructure/job/Scraper.java b/src/main/java/cn/stock/market/infrastructure/job/Scraper.java index 6216088..2c7d9f0 100644 --- a/src/main/java/cn/stock/market/infrastructure/job/Scraper.java +++ b/src/main/java/cn/stock/market/infrastructure/job/Scraper.java @@ -261,7 +261,7 @@ public class Scraper { .collect(Collectors.toList()); for (StockIpo stockIpo : listStockIpoList) { - StockIpo existIpo = existStockIpoList.stream().filter(a -> a.getStockCode().equals(stockIpo.getStockCode()) && (a.getExchangeType() == null || a.getExchangeType().isEmpty() || a.getExchangeType().equals(stockIpo.getExchangeType()) )).findFirst().orElse(null); + StockIpo existIpo = existStockIpoList.stream().filter(a -> a.getStockCode().equals(stockIpo.getStockCode()) && (a.getExchangeType() == null || a.getExchangeType().isEmpty() || a.getExchangeType().toLowerCase().trim().equals(stockIpo.getExchangeType().toLowerCase().trim()))).findFirst().orElse(null); if (existIpo != null) { if (existIpo.getExchangeType() == null || existIpo.getExchangeType().isEmpty()){ existIpo.setExchangeType(stockIpo.getExchangeType());