提交 2c11157b authored 作者: huyufan's avatar huyufan

承运同步网络货运异步

上级 1a199456
...@@ -56,9 +56,10 @@ public class OrderChildSyncTransportInvoiceExceptionJob { ...@@ -56,9 +56,10 @@ public class OrderChildSyncTransportInvoiceExceptionJob {
if (bean.succeed()) { if (bean.succeed()) {
JSON json = JSONUtil.parse(bean.getData()); JSON json = JSONUtil.parse(bean.getData());
Object status = json.getByPath("status"); Object status = json.getByPath("status");
ids.add(record.getId());
if (ObjectUtil.equal(status, 1)) { if (ObjectUtil.equal(status, 1)) {
OrderChild orderChild = orderChildDao.getByChildNo(record.getChildNo()).get(); OrderChild orderChild = orderChildDao.getByChildNo(record.getChildNo()).get();
ids.add(record.getId());
orderChildPaySync.transportOrderChildProcess(orderChild); orderChildPaySync.transportOrderChildProcess(orderChild);
} else { } else {
Object riskReason = json.getByPath("riskReason"); Object riskReason = json.getByPath("riskReason");
......
...@@ -75,7 +75,7 @@ public class SettlementServiceImpl implements SettlementService { ...@@ -75,7 +75,7 @@ public class SettlementServiceImpl implements SettlementService {
//TODO 发送MQ异步 //TODO 发送MQ异步
Message message = MessageBuilder.withBody(JSONUtil.parse(orderChild).toString().getBytes()).build(); Message message = MessageBuilder.withBody(JSONUtil.parse(orderChild).toString().getBytes()).build();
rabbitTemplate.send( rabbitTemplate.send(
RabbitKeyConstants.ORDER_CANCEL_EXCHANGE, RabbitKeyConstants.ORDER_CANCEL_ROUTE_KEY, message RabbitKeyConstants.ORDER_CHILD_SYNC_TRANSPORT_EXCHANGE, RabbitKeyConstants.ORDER_CHILD_SYNC_TRANSPORT_ROUTE_KEY, message
); );
return; return;
// OrderGoods orderGoods = orderGoodsDao.getByOrderGoodsNo(orderChild.getOrderGoodsNo()).get(); // OrderGoods orderGoods = orderGoodsDao.getByOrderGoodsNo(orderChild.getOrderGoodsNo()).get();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论