Browse Source

fix:1.删除之前的数据DEAL_WITH_EXCHANGE 队列的消息发送

pre-production
pref_mail@163.com 3 weeks ago
parent
commit
83b8e59feb
  1. 10
      blade-service/logpm-factory/src/main/java/com/logpm/factory/comfac/controller/FactoryCommonController.java

10
blade-service/logpm-factory/src/main/java/com/logpm/factory/comfac/controller/FactoryCommonController.java

@ -106,12 +106,12 @@ public class FactoryCommonController {
map.put("flagType", "OrderStatusLog");
// 将消息携带绑定键值
rabbitTemplate.convertAndSend(RabbitConstant.ORDER_STATUS_EXCHANGE, RabbitConstant.ORDER_STATUS_ROUTING, map);
map.put("type", "DealWith");
// map.put("type", "DealWith");
// if (StringUtil.equals(sendDataProperties.getSend(), "old")) {
rabbitTemplate.convertAndSend(RabbitConstant.DEAL_WITH_EXCHANGE, RabbitConstant.DEAL_WITH_ROUTING, map, message -> {
message.getMessageProperties().setHeader("x-delay", 2000);
return message;
});
// rabbitTemplate.convertAndSend(RabbitConstant.DEAL_WITH_EXCHANGE, RabbitConstant.DEAL_WITH_ROUTING, map, message -> {
// message.getMessageProperties().setHeader("x-delay", 2000);
// return message;
// });
// }
// R r = factoryDataService.handleStatusData(orderStatusDTO);

Loading…
Cancel
Save