|
|
|
@ -64,7 +64,7 @@ public class DeliveryNoteServiceImpl extends BaseServiceImpl<DeliveryNoteMapper,
|
|
|
|
|
|
|
|
|
|
// 3 将消息发送给 mq,解析保存
|
|
|
|
|
SendMsg build = SendMsg.builder().exchange(FactoryDataConstants.Mq.Exchanges.FACTORY_ORDER) |
|
|
|
|
.routingKey(FactoryDataConstants.Mq.RoutingKeys.SFY_FACTORY_ORDER).message(JSONUtil.toJsonStr(logEntity)).build(); |
|
|
|
|
.routingKey(FactoryDataConstants.Mq.RoutingKeys.JP_FACTORY_ORDER).message(JSONUtil.toJsonStr(logEntity)).build(); |
|
|
|
|
factoryDataClient.sendMessage(build); |
|
|
|
|
return "成功"; |
|
|
|
|
} |
|
|
|
@ -83,7 +83,7 @@ public class DeliveryNoteServiceImpl extends BaseServiceImpl<DeliveryNoteMapper,
|
|
|
|
|
|
|
|
|
|
// 3 将消息发送给 mq,解析保存
|
|
|
|
|
SendMsg build = SendMsg.builder().exchange(FactoryDataConstants.Mq.Exchanges.FACTORY_ORDER) |
|
|
|
|
.routingKey(FactoryDataConstants.Mq.RoutingKeys.SFY_FACTORY_ORDER).message(JSONUtil.toJsonStr(logEntity)).build(); |
|
|
|
|
.routingKey(FactoryDataConstants.Mq.RoutingKeys.JP_FACTORY_ORDER).message(JSONUtil.toJsonStr(logEntity)).build(); |
|
|
|
|
factoryDataClient.sendMessage(build); |
|
|
|
|
return "成功"; |
|
|
|
|
} |
|
|
|
@ -101,7 +101,7 @@ public class DeliveryNoteServiceImpl extends BaseServiceImpl<DeliveryNoteMapper,
|
|
|
|
|
factoryOrderLogService.save(logEntity); |
|
|
|
|
// 3 将消息发送给 mq,解析保存
|
|
|
|
|
SendMsg build = SendMsg.builder().exchange(FactoryDataConstants.Mq.Exchanges.FACTORY_ORDER) |
|
|
|
|
.routingKey(FactoryDataConstants.Mq.RoutingKeys.SFY_FACTORY_ORDER).message(JSONUtil.toJsonStr(logEntity)).build(); |
|
|
|
|
.routingKey(FactoryDataConstants.Mq.RoutingKeys.JP_FACTORY_ORDER).message(JSONUtil.toJsonStr(logEntity)).build(); |
|
|
|
|
factoryDataClient.sendMessage(build); |
|
|
|
|
return "成功"; |
|
|
|
|
} |
|
|
|
|