|
|
@@ -90,7 +90,7 @@ public class TradeAuctionService {
|
|
|
log.info("创建redis库存:{}", success);
|
|
|
}
|
|
|
Long stock = ops.increment(number);
|
|
|
- rocketMQTemplate.convertAndSend(generalProperties.getUpdateStockTopic(), id);
|
|
|
+ redisTemplate.opsForHash().increment(RedisKeys.UPDATE_STOCK, id.toString(), 1);
|
|
|
return stock;
|
|
|
}
|
|
|
|