|
|
|
@ -43,7 +43,7 @@ public class DistributionNodeWorkServiceImpl implements IDistributionNodeWorkSer
|
|
|
|
|
public void planReservation(NodeFanoutMsg<ReservationVO> nodeFanoutMsg, BladeUser user) { |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
rabbitTemplate.convertAndSend(FanoutConstants.reservation.OwnReservation.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg)); |
|
|
|
|
// rabbitTemplate.convertAndSend(FanoutConstants.reservation.OwnReservation.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg));
|
|
|
|
|
} catch (AmqpException e) { |
|
|
|
|
log.error(">>>>>>>>>>>>>>>>>>>>>>>>>> 消息推送失败~ 请联系管理员! ", e); |
|
|
|
|
} |
|
|
|
@ -53,7 +53,7 @@ public class DistributionNodeWorkServiceImpl implements IDistributionNodeWorkSer
|
|
|
|
|
@Override |
|
|
|
|
public void planDelivery(NodeFanoutMsg<DistributionTaskVO> nodeFanoutMsg, BladeUser user) { |
|
|
|
|
try { |
|
|
|
|
rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndPlan.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg)); |
|
|
|
|
// rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndPlan.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg));
|
|
|
|
|
} catch (AmqpException e) { |
|
|
|
|
log.error(">>>>>>>>>>>>>>>>>>>>>>>>>> 消息推送失败~ 请联系管理员! ", e); |
|
|
|
|
} |
|
|
|
@ -64,7 +64,7 @@ public class DistributionNodeWorkServiceImpl implements IDistributionNodeWorkSer
|
|
|
|
|
@Override |
|
|
|
|
public void cancelReservation(NodeFanoutMsg<ReservationVO> nodeFanoutMsg, BladeUser user) { |
|
|
|
|
try { |
|
|
|
|
rabbitTemplate.convertAndSend(FanoutConstants.reservation.OwnReservation.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg)); |
|
|
|
|
// rabbitTemplate.convertAndSend(FanoutConstants.reservation.OwnReservation.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg));
|
|
|
|
|
} catch (AmqpException e) { |
|
|
|
|
log.error(">>>>>>>>>>>>>>>>>>>>>>>>>> 消息推送失败~ 请联系管理员! ", e); |
|
|
|
|
} |
|
|
|
@ -74,7 +74,7 @@ public class DistributionNodeWorkServiceImpl implements IDistributionNodeWorkSer
|
|
|
|
|
public void planStock(NodeFanoutMsg<StockUpVO> nodeFanoutMsg, BladeUser user) { |
|
|
|
|
// 备货信息主表
|
|
|
|
|
try { |
|
|
|
|
rabbitTemplate.convertAndSend(FanoutConstants.distribution.stock.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg)); |
|
|
|
|
// rabbitTemplate.convertAndSend(FanoutConstants.distribution.stock.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg));
|
|
|
|
|
} catch (AmqpException e) { |
|
|
|
|
log.error(">>>>>>>>>>>>>>>>>>>>>>>>>> 消息推送失败~ 请联系管理员! ", e); |
|
|
|
|
} |
|
|
|
@ -84,7 +84,7 @@ public class DistributionNodeWorkServiceImpl implements IDistributionNodeWorkSer
|
|
|
|
|
@Override |
|
|
|
|
public void nodeLoading(NodeFanoutMsg<DistributionLoadVO> nodeFanoutMsg, BladeUser user) { |
|
|
|
|
try { |
|
|
|
|
rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndLoading.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg)); |
|
|
|
|
// rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndLoading.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg));
|
|
|
|
|
} catch (AmqpException e) { |
|
|
|
|
log.error(">>>>>>>>>>>>>>>>>>>>>>>>>> 消息推送失败~ 请联系管理员! ", e); |
|
|
|
|
} |
|
|
|
@ -93,7 +93,7 @@ public class DistributionNodeWorkServiceImpl implements IDistributionNodeWorkSer
|
|
|
|
|
@Override |
|
|
|
|
public void abnormalLoading(NodeFanoutMsg<DistributionLoadVO> nodeFanoutMsg, BladeUser user) { |
|
|
|
|
try { |
|
|
|
|
rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndLoading.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg)); |
|
|
|
|
// rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndLoading.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg));
|
|
|
|
|
} catch (AmqpException e) { |
|
|
|
|
log.error(">>>>>>>>>>>>>>>>>>>>>>>>>> 消息推送失败~ 请联系管理员! ", e); |
|
|
|
|
} |
|
|
|
@ -107,7 +107,7 @@ public class DistributionNodeWorkServiceImpl implements IDistributionNodeWorkSer
|
|
|
|
|
@Override |
|
|
|
|
public void carStart(NodeFanoutMsg<CarStartVO> nodeFanoutMsg, BladeUser user) { |
|
|
|
|
try { |
|
|
|
|
rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndCarStart.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg)); |
|
|
|
|
// rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndCarStart.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg));
|
|
|
|
|
} catch (AmqpException e) { |
|
|
|
|
log.error(">>>>>>>>>>>>>>>>>>>>>>>>>> 消息推送失败~ 请联系管理员! ", e); |
|
|
|
|
} |
|
|
|
@ -116,7 +116,7 @@ public class DistributionNodeWorkServiceImpl implements IDistributionNodeWorkSer
|
|
|
|
|
@Override |
|
|
|
|
public void carArrived(NodeFanoutMsg<ConsigneeArriveVO> nodeFanoutMsg, BladeUser user) { |
|
|
|
|
try { |
|
|
|
|
rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndConsigneeArrive.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg)); |
|
|
|
|
// rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndConsigneeArrive.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg));
|
|
|
|
|
} catch (AmqpException e) { |
|
|
|
|
log.error(">>>>>>>>>>>>>>>>>>>>>>>>>> 消息推送失败~ 请联系管理员! ", e); |
|
|
|
|
} |
|
|
|
@ -129,7 +129,7 @@ public class DistributionNodeWorkServiceImpl implements IDistributionNodeWorkSer
|
|
|
|
|
log.error(">>>>>>>>>>>>>>>>>>>>>>>>>> nodeFanoutMsg is null! "); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndSignfor.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg)); |
|
|
|
|
// rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndSignfor.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg));
|
|
|
|
|
} catch (AmqpException e) { |
|
|
|
|
log.error(">>>>>>>>>>>>>>>>>>>>>>>>>> 签收节点消息推送失败~ 请联系管理员! ", e); |
|
|
|
|
} |
|
|
|
@ -168,7 +168,7 @@ public class DistributionNodeWorkServiceImpl implements IDistributionNodeWorkSer
|
|
|
|
|
@Override |
|
|
|
|
public void signForCheck(NodeFanoutMsg<DistributionReCheckSignVO> nodeFanoutMsg, BladeUser user) { |
|
|
|
|
try { |
|
|
|
|
rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndrecheck.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg)); |
|
|
|
|
// rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndrecheck.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg));
|
|
|
|
|
} catch (AmqpException e) { |
|
|
|
|
log.error(">>>>>>>>>>>>>>>>>>>>>>>>>> 签收复核消息推送失败~ 请联系管理员! ", e); |
|
|
|
|
} |
|
|
|
@ -180,7 +180,7 @@ public class DistributionNodeWorkServiceImpl implements IDistributionNodeWorkSer
|
|
|
|
|
@Override |
|
|
|
|
public void planOfBill(NodeFanoutMsg<DeliveryOfPickupPlanVO> nodeFanoutMsg, BladeUser user) { |
|
|
|
|
try { |
|
|
|
|
rabbitTemplate.convertAndSend(FanoutConstants.DeliveryOfPickup.BillPlan.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg)); |
|
|
|
|
// rabbitTemplate.convertAndSend(FanoutConstants.DeliveryOfPickup.BillPlan.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg));
|
|
|
|
|
} catch (AmqpException e) { |
|
|
|
|
log.error(">>>>>>>>>>>>>>>>>>>>>>>>>> 自提计划消息推送失败~ 请联系管理员! ", e); |
|
|
|
|
} |
|
|
|
@ -189,7 +189,7 @@ public class DistributionNodeWorkServiceImpl implements IDistributionNodeWorkSer
|
|
|
|
|
@Override |
|
|
|
|
public void signByBill(NodeFanoutMsg<PickUpByScanVO> nodeFanoutMsg, BladeUser user) { |
|
|
|
|
try { |
|
|
|
|
rabbitTemplate.convertAndSend(FanoutConstants.DeliveryOfPickup.BillSign.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg)); |
|
|
|
|
// rabbitTemplate.convertAndSend(FanoutConstants.DeliveryOfPickup.BillSign.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg));
|
|
|
|
|
} catch (AmqpException e) { |
|
|
|
|
log.error(">>>>>>>>>>>>>>>>>>>>>>>>>> 自提签收消息推送失败~ 请联系管理员! ", e); |
|
|
|
|
} |
|
|
|
@ -198,7 +198,7 @@ public class DistributionNodeWorkServiceImpl implements IDistributionNodeWorkSer
|
|
|
|
|
@Override |
|
|
|
|
public void billofladingSignforCheck(NodeFanoutMsg<PickUpByReCheckVO> nodeFanoutMsg, BladeUser user) { |
|
|
|
|
try { |
|
|
|
|
rabbitTemplate.convertAndSend(FanoutConstants.DeliveryOfPickup.BillSignReview.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg)); |
|
|
|
|
// rabbitTemplate.convertAndSend(FanoutConstants.DeliveryOfPickup.BillSignReview.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg));
|
|
|
|
|
} catch (AmqpException e) { |
|
|
|
|
log.error(">>>>>>>>>>>>>>>>>>>>>>>>>> 自提复核消息推送失败~ 请联系管理员! ", e); |
|
|
|
|
} |
|
|
|
@ -207,7 +207,7 @@ public class DistributionNodeWorkServiceImpl implements IDistributionNodeWorkSer
|
|
|
|
|
@Override |
|
|
|
|
public void finishDistributionTrain(NodeFanoutMsg<FinishDistributionTrainVO> nodeFanoutMsg, BladeUser user) { |
|
|
|
|
try { |
|
|
|
|
rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndFinish.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg)); |
|
|
|
|
// rabbitTemplate.convertAndSend(FanoutConstants.distribution.DeliveryAndFinish.EXCHANGE, null, com.alibaba.fastjson.JSONObject.toJSONString(nodeFanoutMsg));
|
|
|
|
|
} catch (AmqpException e) { |
|
|
|
|
log.error(">>>>>>>>>>>>>>>>>>>>>>>>>> 车次完成消息推送失败~ 请联系管理员! ", e); |
|
|
|
|
} |
|
|
|
|