1. 商品信息变动刷新库存
2. 商品信息变动发生Mq消息
This commit is contained in:
@@ -167,7 +167,10 @@ public class ProductRpcServiceImpl implements ProductRpcService {
|
||||
consStockFlowMapper.insert(consStockFlow);
|
||||
}
|
||||
}
|
||||
rabbitPublisher.sendProductInfoChangeMsg(Convert.toStr(shopId));
|
||||
ThreadUtil.execAsync(() -> {
|
||||
rabbitPublisher.sendProductInfoChangeMsg(Convert.toStr(shopId));
|
||||
});
|
||||
log.info("ProductService.--------------------------------------------库存更新成功");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -221,6 +224,9 @@ public class ProductRpcServiceImpl implements ProductRpcService {
|
||||
consStockFlowMapper.insert(consStockFlow);
|
||||
}
|
||||
}
|
||||
rabbitPublisher.sendProductInfoChangeMsg(Convert.toStr(shopId));
|
||||
ThreadUtil.execAsync(() -> {
|
||||
rabbitPublisher.sendProductInfoChangeMsg(Convert.toStr(shopId));
|
||||
});
|
||||
log.info("ProductService.--------------------------------------------库存更新成功");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user