1
zyy
10 days ago 81d19413394010912409cc56847c054b03e5eddb
trading-order-service/src/main/java/com/yami/trading/service/item/ItemService.java
@@ -164,6 +164,24 @@
    }
    /**
     * 通过 symbol 找去缓存对象
     *
     * @param symbol
     * @return
     */
    @Transactional(propagation = Propagation.NOT_SUPPORTED)
    public Item findCaCheBySymbol(String symbol) {
        Item item;
        if (CollectionUtil.isNotEmpty(symbolItem)) {
            item = symbolItem.get(symbol);
            if (item != null) {
                return item;
            }
        }
        return null;
    }
    /**
     * 基于 remarks 字段去缓存提取 item 对象,特性是基于 remarks 映射 symbol,从缓存中提取 item;
     * 如果缓存中没有数据,则直接去数据库查询返回。
     *